Utf8Decoder class
Provides an iterator of Unicode codepoints from UTF-8 encoded bytes. The parameters can set an offset into a list of bytes (as int), limit the length of the values to be decoded, and override the default Unicode replacement character. Set the replacementCharacter to null to throw an ArgumentError rather than replace the bad value. The return value from this method can be used as an Iterable (e.g. in a for-loop).
Constructors
Properties
- current → int?
-
The current element.
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
- replacementCodepoint → int?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- utf8EncodedBytesIterator → ListRangeIterator
-
final
Methods
-
decodeRest(
) → List< int?> -
moveNext(
) → bool -
Advances the iterator to the next element of the iteration.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited