UnicodeDecodingResult

enum UnicodeDecodingResult

The result of one Unicode decoding step.

Each UnicodeDecodingResult instance can represent a Unicode scalar value, an indication that no more Unicode scalars are available, or an indication of a decoding error.

Inheritance Equatable View Protocol Hierarchy →
Import import Swift

Cases

case scalarValue(Unicode.Scalar)

A decoded Unicode scalar value.

Declaration

case emptyInput

An indication that no more Unicode scalars are available in the input.

Declaration

case error

An indication of a decoding error.

Declaration