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),
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;
DLLEXPORT const QoreEncoding * QCS_UTF8
UTF-8 multi-byte encoding (only UTF-8 and UTF-16 are multi-byte encodings)
Definition: QoreEncoding.h:247
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:50
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
abstract base class for iterator private data
Definition: QoreIteratorBase.h:68
DLLEXPORT bool ROdereference() const
atomically decrements the reference count
DLLEXPORT const QoreEncoding * getEncoding() const
returns the encoding for the string
Qore's string value type, reference counted, dynamically-allocated only.
Definition: QoreStringNode.h:50
DLLEXPORT QoreStringNode * stringRefSelf() const
references the object and returns a non-const pointer to "this"
manages a reference count of a pointer to a class that takes a simple "deref()" call with no argument...
Definition: ReferenceHolder.h:127
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