Enumeration

UnicodeDecodingResult

The result of one Unicode decoding step.

Declaration

@frozen enum UnicodeDecodingResult

Overview

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.

Topics

Enumeration Cases

case emptyInput

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

case error

An indication of a decoding error.

case scalarValue(Unicode.Scalar)

A decoded Unicode scalar value.

Operator Functions

static func != (UnicodeDecodingResult, UnicodeDecodingResult) -> Bool

Returns a Boolean value indicating whether two values are not equal.

static func == (UnicodeDecodingResult, UnicodeDecodingResult) -> Bool

Returns a Boolean value indicating whether two values are equal.

Relationships

Conforms To

See Also

Unicode Codecs

protocol UnicodeCodec

A Unicode encoding form that translates between Unicode scalar values and form-specific code units.

enum Unicode.ParseResult

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