Structureswift 6.0.1Swift
ForwardParser
@frozen struct ForwardParser
@frozen struct ForwardParser
import Swift
@frozen enum UTF8
@frozen enum Unicode
A namespace for Unicode utilities.
init()
Creates an instance of the UTF-8 codec.
static var encodedReplacementCharacter: Unicode.UTF8.EncodedScalar { get }
static func decode(_ source: Unicode.UTF8.EncodedScalar) -> Unicode.Scalar
static func encode(_ source: Unicode.Scalar) -> Unicode.UTF8.EncodedScalar?
static func encode(_ input: Unicode.Scalar, into processCodeUnit: (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(_ x: Unicode.UTF8.CodeUnit) -> Bool
Returns whether the given code unit represents an ASCII scalar
static func isContinuation(_ byte: Unicode.UTF8.CodeUnit) -> Bool
Returns a Boolean value indicating whether the specified code unit is a UTF-8 continuation byte.
static func transcode<FromEncoding>(_ content: FromEncoding.EncodedScalar, from _: FromEncoding.Type) -> Unicode.UTF8.EncodedScalar? where FromEncoding : _UnicodeEncoding
static func width(_ x: Unicode.Scalar) -> Int
Returns the number of code units required to encode the given Unicode scalar.
mutating func decode<I>(_ input: inout I) -> UnicodeDecodingResult where I : IteratorProtocol, I.Element == UInt8
Starts or continues decoding a UTF-8 sequence.
@frozen struct ReverseParser
typealias CodeUnit = UInt8
typealias EncodedScalar
protocol BitwiseCopyable
protocol Copyable
A type whose values can be implicitly or explicitly copied.
protocol Escapable
protocol Sendable
init()
typealias Encoding = Unicode.UTF8