Unicode.ParseResult

enum Unicode.ParseResult<T>

The result of attempting to parse a T from some input.

Import import Swift

Cases

case valid(T)

A T was parsed successfully

Declaration

case emptyInput

The input was entirely consumed.

Declaration

case error(length: Int)

An encoding error was detected.

length is the number of underlying code units consumed by this error (the length of the longest prefix of a valid encoding sequence that could be recognized).

Declaration