Qore Programming Language Reference Manual 1.18.0
Loading...
Searching...
No Matches
QC_DataLineIterator.dox.h
1
2namespace Qore {
4
26
27public:
29
35 constructor(string str, *string eol, bool trim = True);
36
37public:
39
45
46public:
48
58string getEncoding();
59
60public:
62
79string getLine();
80
81public:
83
100string getValue();
101
102public:
104
116int index();
117
118public:
120
134bool next();
135
136public:
138
148
149public:
151
162bool valid();
163};
164}
This class defines an abstract interface for line iterators.
Definition: QC_AbstractLineIterator.dox.h:8
This class defines a line iterator for string data.
Definition: QC_DataLineIterator.dox.h:25
string getValue()
returns the current line in the data or throws an ITERATOR-ERROR exception if the iterator is invalid
int index()
returns the current iterator line number in the data (the first line is line 1) or 0 if not pointing ...
constructor(string str, *string eol, bool trim=True)
creates the DataLineIterator based on the string given
reset()
Reset the iterator instance to its initial state.
string getEncoding()
Returns the character encoding for the DataLineIterator.
copy()
Creates a new DataLineIterator object, based on the same object being iterated in the original object...
bool valid()
returns True if the iterator is currently pointing at a valid element, False if not
bool next()
Moves the current position to the next line in the data; returns False if there are no more lines to ...
string getLine()
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
nothing trim()
This function variant does nothing at all; it is only included for backwards-compatibility with qore ...
Qore namespace.
Definition: QC_AbstractSmartLock.dox.h:2