RuneIterator class

Iterator for reading runes (integer Unicode code points) out of a Dart string.

Iterator for reading runes (integer Unicode code points) out of a Dart string.

Implements:

Constructors

RuneIterator ( String string )
Create an iterator positioned at the beginning of the string.
RuneIterator.at ( String string, int index )
Create an iterator positioned before the indexth code unit of the string.

Instance Properties

string String
read-only
String being iterated.
rawIndex int
read/write
current int
read-only
currentSize int
read-only
currentAsString String
read-only

Instance Methods

reset ( [int rawIndex = 0] ) → void
Resets the iterator to the given index into the string.
moveNext ( ) → bool
Moves to the next element.
movePrevious ( ) → bool
Move back to the previous element.