RuneIterator class
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
index
th code unit of the string. [...]
Properties
- current → int
-
The rune (integer Unicode code point) starting at the current position in [...]
read-only
- currentAsString → String
-
A string containing the current rune. [...]
read-only
- currentSize → int
-
The number of code units comprising the current rune. [...]
read-only
- rawIndex ↔ int
-
Returns the starting position of the current rune in the string. [...]
read / write
- string → String
-
String being iterated.
final
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Methods
-
moveNext(
) → bool - Moves to the next element. [...]
-
movePrevious(
) → bool - Move back to the previous element. [...]
-
reset(
[int rawIndex = 0 ]) → void - Resets the iterator to the given index into the string. [...]
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
toString(
) → String -
Returns a string representation of this object.
inherited
Operators
-
operator ==(
dynamic other) → bool -
The equality operator. [...]
inherited