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.

See Also: UnicodeCodec.decode(next:)

Inheritance Equatable View Protocol Hierarchy →
Import import Swift

Cases

case scalarValue(UnicodeScalar)

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

Instance Methods

func ==(_:rhs:)

Returns a Boolean value indicating whether two values are equal.

Equality is the inverse of inequality. For any values a and b, a == b implies that a != b is false.

Parameters: lhs: A value to compare. rhs: Another value to compare.

Declaration

func ==(lhs: UnicodeDecodingResult, rhs: UnicodeDecodingResult) -> Bool