No overview available.
SDKs
- iOS 7.0+
- macOS 10.9+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
- Xcode 10.2+
Framework
- Foundation
No overview available.
SDKs
Framework
init?(utf8String: Unsafe Pointer<CChar>)
Produces a string created by copying the data from a given C array of UTF8-encoded bytes.
init?(validating UTF8: Unsafe Pointer<CChar>)
Creates a new string by copying and validating the null-terminated UTF-8 data referenced by the given pointer.
init(utf16Code Units: Unsafe Pointer<unichar>, count: Int)
Returns an initialized String
object that contains a given number of characters from a given array of Unicode characters.
init(utf16Code Units No Copy: Unsafe Pointer<unichar>, count: Int, free When Done: Bool)
Returns an initialized String
object that contains a given number of characters from a given array of UTF-16 Code Units
init<C, Encoding>(decoding: C, as: Encoding .Type)
Creates a string from the given Unicode code units in the specified encoding.