A namespace for Unicode utilities.
SDK
- Xcode 9.0+
Framework
- Swift Standard Library
A namespace for Unicode utilities.
SDK
Framework
struct Unicode .Scalar
A Unicode scalar value.
enum Unicode .General Category
The most general classification of a Unicode scalar.
struct Unicode .Canonical Combining Class
The classification of a scalar used in the Canonical Ordering Algorithm defined by the Unicode Standard.
enum Unicode .Numeric Type
The numeric type of a scalar.
protocol Unicode Codec
A Unicode encoding form that translates between Unicode scalar values and form-specific code units.
enum Unicode Decoding Result
The result of one Unicode decoding step.
enum Unicode .Parse Result
The 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) -> Bool
Translates the given input from one Unicode encoding to another by calling the given closure.
typealias Unicode .Version
A version of the Unicode Standard represented by its major and minor components.