| Qore Programming Language Reference Manual 2.2.0

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