IntlStream class
A simple and not particularly general stream class to make parsing dates from strings simpler. It is general enough to operate on either lists or strings.
Constructors
- IntlStream.new(dynamic contents)
Properties
Methods
-
atEnd(
) → bool -
findIndex(
bool f(dynamic)) → int? -
Find the index of the first element for which
f
returns true. Advances the stream to that position. -
findIndexes(
bool f(dynamic)) → List -
Find the indexes of all the elements for which
f
returns true. Leaves the stream positioned at the end. -
next(
) → dynamic -
nextInteger(
{RegExp? digitMatcher, int? zeroDigit}) → int? - Assuming that the contents are characters, read as many digits as we can see and then return the corresponding integer, advancing the receiver.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
peek(
[int howMany = 1]) → dynamic -
Return the next
howMany
items, or as many as there are remaining. Does not modify the stream position. -
read(
[int howMany = 1]) → dynamic -
Return the next
howMany
items, or as many as there are remaining. Advance the stream by that many positions. -
rest(
) → dynamic - Return the remaining contents of the stream
-
startsWith(
String pattern) → bool - Does the input start with the given string, if we start from the current position.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited