UTF32
@frozen enum UTF32
Citizens in Swift
Conformances
protocol Equatable
A type that can be compared for value equality.
protocol Hashable
A type that can be hashed into a
Hasher
to produce an integer hash value.protocol Sendable
A type whose values can safely be passed across concurrency domains by copying.
protocol UnicodeCodec
A Unicode encoding form that translates between Unicode scalar values and form-specific code units.
Members
init(
) Creates an instance of the UTF-32 codec.
static var encodedReplacementCharacter: Unicode.UTF32.EncodedScalar
static func decode(Unicode
.UTF32.EncodedScalar) -> Unicode.Scalar static func encode(Unicode
.Scalar) -> Unicode.UTF32.EncodedScalar? static func encode(Unicode
.Scalar, into: (Unicode.UTF32.CodeUnit) -> Void) Encodes a Unicode scalar as a UTF-32 code unit by calling the given closure.
static func isASCII(Unicode
.UTF32.CodeUnit) -> Bool Returns whether the given code unit represents an ASCII scalar
func decode<I>(inout I
) -> UnicodeDecodingResult Starts or continues decoding a UTF-32 sequence.
struct Parser
typealias CodeUnit
typealias EncodedScalar
typealias ForwardParser
typealias ReverseParser