RuneIterator class

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

Implemented types

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. [...]

Properties

currentint
read-only, override
The rune (integer Unicode code point) starting at the current position in the string. [...]
currentAsStringString
read-only
A string containing the current rune. [...]
currentSizeint
read-only
The number of code units comprising the current rune. [...]
hashCodeint
read-only, inherited
The hash code for this object. [...]
rawIndexint
read / write
The starting position of the current rune in the string. [...]
runtimeTypeType
read-only, inherited
A representation of the runtime type of the object.
stringString
final
String being iterated.

Methods

moveNext() → bool
override
Advances the iterator to the next element of the iteration. [...]
movePrevious() → bool
override
Move back to the previous element. [...]
noSuchMethod(Invocation invocation) → dynamic
inherited
Invoked when a non-existent method or property is accessed. [...]
reset([int rawIndex = 0]) → void
Resets the iterator to the given index into the string. [...]
toString() → String
inherited
A string representation of this object. [...]

Operators

operator ==(Object other) → bool
inherited
The equality operator. [...]

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dart.dev/stable/2.13.0/dart-core/RuneIterator-class.html