 |
Qore Programming Language Reference Manual
0.9.4.5
|
constructor(string str, *string eol, bool trim=True)
creates the DataLineIterator based on the string given
string getValue()
returns the current line in the data or throws an ITERATOR-ERROR exception if the iterator is invalid
const True
logical True
Definition: qc_qore.dox.h:98
string trim(string str, *string chars)
Removes byte characters from the start and end of a string and returns the new string (also see the t...
int index()
returns the current iterator line number in the data (the first line is line 1) or 0 if not pointing ...
This class defines a line iterator for string data.
Definition: QC_DataLineIterator.dox.h:25
reset()
Reset the iterator instance to its initial state.
string getLine()
returns the current line in the data or throws an ITERATOR-ERROR exception if the iterator is invalid
string getEncoding()
Returns the character encoding for the DataLineIterator.
This class defines an abstract interface for line iterators.
Definition: QC_AbstractLineIterator.dox.h:8
bool next()
Moves the current position to the next line in the data; returns False if there are no more lines to ...
copy()
Creates a new DataLineIterator object, based on the same object being iterated in the original object...
main Qore-language namespace
Definition: Pseudo_QC_All.dox.h:3
bool valid()
returns True if the iterator is currently pointing at a valid element, False if not