LineIterator

LineIterator: LineIterator, hasValue, value, increment, toList, iterator

struct LineIterator: Copyable, Iterator<string>

Iterates over the lines of a string.

LineIterator

LineIterator(string stream)

Initializes an iterator over the given string.

hasValue

bool hasValue()

Returns true if there are more lines.

value

string value()

Returns the current line.

increment

void increment()

Advances to the next line.

toList

List<string> toList()

Collects the remaining lines into a list.

iterator

LineIterator iterator()

Returns itself.