Iterator for reading runes (integer Unicode code points) out of a Dart string.
- Implements
Properties
- int current
-
read-onlyThe rune (integer Unicode code point) starting at the current position in the string.
- String currentAsString
-
read-onlyA string containing the current rune.
- int currentSize
-
read-onlyThe number of code units comprising the current rune.
- int rawIndex
-
read / writeReturns the starting position of the current rune in the string.
- String string
-
read-onlyString being iterated.
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
index
th code unit of the string.