UTF32
@frozen enum UTF32
@frozen enum UTF32
import Swift
@frozen enum Unicode
A namespace for Unicode utilities.
@frozen enum ASCII
struct CanonicalCombiningClass
The classification of a scalar used in the Canonical Ordering Algorithm defined by the Unicode Standard.
enum GeneralCategory
The most general classification of a Unicode scalar.
enum NumericType
The numeric type of a scalar.
@frozen enum ParseResult<T>
The result of attempting to parse a T
from some input.
@frozen struct Scalar
A Unicode scalar value.
@frozen enum UTF16
@frozen enum UTF8
typealias Encoding = _UnicodeEncoding
typealias Parser = _UnicodeParser
typealias Version = (major: Int, minor: Int)
A version of the Unicode Standard represented by its major and minor components.
protocol BitwiseCopyable
protocol Copyable
A type whose values can be implicitly or explicitly copied.
protocol Equatable
A type that can be compared for value equality.
protocol Escapable
protocol Hashable : Equatable
A type that can be hashed into a Hasher
to produce an integer hash value.
protocol Sendable
protocol UnicodeCodec : _UnicodeEncoding
A Unicode encoding form that translates between Unicode scalar values and form-specific code units.
init()
Creates an instance of the UTF-32 codec.
static var encodedReplacementCharacter: Unicode.UTF32.EncodedScalar { get }
static func decode(_ source: Unicode.UTF32.EncodedScalar) -> Unicode.Scalar
static func encode(_ source: Unicode.Scalar) -> Unicode.UTF32.EncodedScalar?
static func encode(_ input: Unicode.Scalar, into processCodeUnit: (Unicode.UTF32.CodeUnit) -> Void)
Encodes a Unicode scalar as a UTF-32 code unit by calling the given closure.
static func isASCII(_ x: Unicode.UTF32.CodeUnit) -> Bool
Returns whether the given code unit represents an ASCII scalar
mutating func decode<I>(_ input: inout I) -> UnicodeDecodingResult where I : IteratorProtocol, I.Element == UInt32
Starts or continues decoding a UTF-32 sequence.
@frozen struct Parser
typealias CodeUnit = UInt32
typealias EncodedScalar = CollectionOfOne<UInt32>
typealias ForwardParser = Unicode.UTF32.Parser
typealias ReverseParser = Unicode.UTF32.Parser
static func != (lhs: Self, rhs: Self) -> Bool
Returns a Boolean value indicating whether two values are not equal.