Enumerationswift 6.0.1Swift
UTF8
@frozen enum UTF8
Other members in extension
View members
Hide members
This section is hidden by default because it contains too many (11) members.
Types
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.
enum ParseResult<T>
The result of attempting to parse a
T
from some input.struct Scalar
A Unicode scalar value.
enum UTF16
enum UTF32
Typealiases
typealias Encoding
typealias Parser
typealias Version
A version of the Unicode Standard represented by its major and minor components.
Citizens in Swift
Conformances
protocol BitwiseCopyable
protocol Copyable
A type whose values can be implicitly or explicitly copied.
protocol Escapable
protocol Sendable
protocol UnicodeCodec
A Unicode encoding form that translates between Unicode scalar values and form-specific code units.
Types
Typealiases
Type members
init(
) Creates an instance of the UTF-8 codec.
static var encodedReplacementCharacter: Unicode.UTF8.EncodedScalar
static func decode(Unicode.UTF8.EncodedScalar
) -> Unicode.Scalar static func encode(Unicode.Scalar
) -> Unicode.UTF8.EncodedScalar? static func encode(Unicode.Scalar, into: (Unicode.UTF8.CodeUnit) -> Void
) Encodes a Unicode scalar as a series of code units by calling the given closure on each code unit.
static func isASCII(Unicode.UTF8.CodeUnit
) -> Bool Returns whether the given code unit represents an ASCII scalar
static func isContinuation(Unicode.UTF8.CodeUnit
) -> Bool Returns a Boolean value indicating whether the specified code unit is a UTF-8 continuation byte.
static func transcode<FromEncoding>(FromEncoding.EncodedScalar, from: FromEncoding.Type
) -> Unicode.UTF8.EncodedScalar? static func width(Unicode.Scalar
) -> Int Returns the number of code units required to encode the given Unicode scalar.
Instance members
func decode<I>(inout I
) -> UnicodeDecodingResult Starts or continues decoding a UTF-8 sequence.