A namespace for Unicode utilities.
SDK
- Xcode 9.0+
Framework
- Swift Standard Library
Declaration
@frozen enum Unicode
A namespace for Unicode utilities.
SDK
Framework
@frozen enum Unicode
struct Unicode .ScalarA Unicode scalar value.
enum Unicode .General CategoryThe most general classification of a Unicode scalar.
struct Unicode .Canonical Combining ClassThe classification of a scalar used in the Canonical Ordering Algorithm defined by the Unicode Standard.
enum Unicode .Numeric TypeThe numeric type of a scalar.
protocol Unicode CodecA Unicode encoding form that translates between Unicode scalar values and form-specific code units.
enum Unicode Decoding ResultThe result of one Unicode decoding step.
enum Unicode .Parse ResultThe result of attempting to parse a T from some input.
func transcode<Input, Input Encoding, Output Encoding>(Input, from: Input Encoding .Type, to: Output Encoding .Type, stopping On Error: Bool, into: (Output Encoding .Code Unit) -> Void) -> BoolTranslates the given input from one Unicode encoding to another by calling the given closure.
typealias Unicode .VersionA version of the Unicode Standard represented by its major and minor components.