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.Scalar
A Unicode scalar value.
enum Unicode.GeneralCategory
The most general classification of a Unicode scalar.
struct Unicode.CanonicalCombiningClass
The classification of a scalar used in the Canonical Ordering Algorithm defined by the Unicode Standard.
enum Unicode.NumericType
The numeric type of a scalar.
protocol UnicodeCodec
A Unicode encoding form that translates between Unicode scalar values and form-specific code units.
enum UnicodeDecodingResult
The result of one Unicode decoding step.
enum Unicode.ParseResult
The result of attempting to parse a T
from some input.
func transcode<Input, InputEncoding, OutputEncoding>(Input, from: InputEncoding.Type, to: OutputEncoding.Type, stoppingOnError : Bool, into: (OutputEncoding.CodeUnit) -> 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.