32 #ifndef _QORE_DATALINEITERATOR_H 33 #define _QORE_DATALINEITERATOR_H 38 #include "qore/intern/StringInputStream.h" 39 #include "qore/intern/InputStreamLineIterator.h" 49 eol(n_eol ? n_eol->stringRefSelf() : 0),
54 DLLLOCAL DataLineIterator(
ExceptionSink* xsink,
const DataLineIterator& old) :
62 DLLLOCAL ~DataLineIterator() {
66 bool validp = src->next(xsink);
73 DLLLOCAL
int64 index() {
78 return src->getValue();
81 DLLLOCAL
bool valid() {
86 return src->checkValid(xsink);
96 return src->getEncoding();
104 DLLLOCAL
virtual const char* getName()
const {
return "DataLineIterator"; }
106 DLLLOCAL
virtual const QoreTypeInfo* getElementType()
const {
107 return stringTypeInfo;
125 #endif // _QORE_DATALINEITERATOR_H DLLEXPORT const QoreEncoding * QCS_UTF8
UTF-8 multi-byte encoding (only UTF-8 and UTF-16 are multi-byte encodings)
defines string encoding functions in Qore
Definition: QoreEncoding.h:83
DLLEXPORT bool isAsciiCompat() const
returns true if the character encoding is backwards-compatible with ASCII
DLLEXPORT QoreStringNode * stringRefSelf() const
references the object and returns a non-const pointer to "this"
DLLEXPORT bool ROdereference() const
atomically decrements the reference count
abstract base class for iterator private data
Definition: QoreIteratorBase.h:68
Qore's string value type, reference counted, dynamically-allocated only.
Definition: QoreStringNode.h:50
Private data for the Qore::DataLineIterator class.
Definition: DataLineIterator.h:44
virtual DLLLOCAL void deref()
decrements the reference count of the object without the possibility of throwing a Qore-language exce...
Definition: DataLineIterator.h:99
container for holding Qore-language exception information and also for registering a "thread_exit" ca...
Definition: ExceptionSink.h:46
long long int64
64bit integer type, cannot use int64_t here since it breaks the API on some 64-bit systems due to equ...
Definition: common.h:260
DLLEXPORT const QoreEncoding * getEncoding() const
returns the encoding for the string