Whether the end of the iteration has been reached. You should
probably check this right after calling next.
Whether the current string represents a line break.
The current string. Will be the empty string when the cursor is
at its end or next hasn't been called on it yet.
Retrieve the next string. Optionally skip a given number of positions after the current position. Always returns the object itself.
Optionalskip: numberOptionalreturnOptionalvalue: anyOptionalthrowOptionale: any
A text iterator iterates over a sequence of strings. When iterating over a
Textdocument, result values will either be lines or line breaks.