Qore Programming Language Reference Manual  0.8.12.3
QC_InputStreamLineIterator.dox.h
1 namespace Qore {
4 
19 
20 public:
22 
29  constructor(Qore::InputStream is, *string encoding, *string eol, bool trim = True);
30 
31 public:
33 
43 string getEncoding();
44 
45 public:
47 
64 string getLine();
65 
66 public:
68 
85 string getValue();
86 
87 public:
89 
101 int index();
102 
103 public:
105 
118 bool next();
119 
120 public:
122 
133 bool valid();
134 };
135 };
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 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
string getValue()
Returns the current line in the data or throws an ITERATOR-ERROR exception if the iterator is invalid...
string getLine()
Returns the current line in the data or throws an ITERATOR-ERROR exception if the iterator is invalid...
This class defines an abstract interface for line iterators.
Definition: QC_AbstractLineIterator.dox.h:8
string getEncoding()
Returns the character encoding for the InputStreamLineIterator.
constructor(Qore::InputStream is, *string encoding, *string eol, bool trim=True)
Creates the InputStreamLineIterator for iterating over the given InputStream.
This class defines a line iterator for input streams.
Definition: QC_InputStreamLineIterator.dox.h:18
int index()
Returns the current iterator line number in the data (the first line is line 1) or 0 if not pointing ...
main Qore-language namespace
Definition: Pseudo_QC_All.dox.h:2
This class defines an abstract interface for input streams.
Definition: QC_InputStream.dox.h:8