Qore Programming Language Reference Manual  0.8.12.3
QC_DataLineIterator.dox.h
1 namespace Qore {
4 
25 
26 public:
28 
34  constructor(string string, *string eol, bool trim = True);
35 
36 public:
38 
43  copy();
44 
45 public:
47 
57 string getEncoding();
58 
59 public:
61 
78 string getLine();
79 
80 public:
82 
92 int getPos();
93 
94 public:
96 
113 string getValue();
114 
115 public:
117 
129 int index();
130 
131 public:
133 
147 bool next();
148 
149 public:
151 
160  reset();
161 
162 public:
164 
175 bool valid();
176 };
177 };
constructor(string string, *string eol, bool trim=True)
creates the DataLineIterator based on the string given
This class defines a line iterator for string data.
Definition: QC_DataLineIterator.dox.h:24
copy()
Creates a new DataLineIterator object, based on the same object being iterated in the original object...
reset()
Reset the iterator instance to its initial state.
bool next()
Moves the current position to the next line in the data; returns False if there are no more lines to ...
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...
const True
logical True
Definition: qc_qore.dox.h:94
int index()
returns the current iterator line number in the data (the first line is line 1) or 0 if not pointing ...
int getPos()
Returns the current data position as an integer giving the offset in bytes from the beginning of the ...
string getEncoding()
Returns the character encoding for the DataLineIterator.
bool valid()
returns True if the iterator is currently pointing at a valid element, False if not ...
main Qore-language namespace
Definition: Pseudo_QC_All.dox.h:2
string getValue()
returns the current line in the data or throws an INVALID-ITERATOR exception if the iterator is inval...
string getLine()
returns the current line in the data or throws an INVALID-ITERATOR exception if the iterator is inval...
This class defines an abstract interface for iterators.
Definition: QC_AbstractIterator.dox.h:10