Qt 4.8
|
Public Types | |
enum | NumberParsingStatus { npsOk, npsMissingDigit, npsInvalidPrefix } |
enum | TokenDelimiter { Space, NotSpace, EndOfLine } |
Public Functions | |
void | consume (int nchars) |
void | consumeLastToken () |
bool | fillReadBuffer (qint64 maxBytes=-1) |
void | flushWriteBuffer () |
bool | getChar (QChar *ch) |
NumberParsingStatus | getNumber (qulonglong *l) |
bool | getReal (double *f) |
void | putNumber (qulonglong number, bool negative) |
void | putString (const QString &ch, bool number=false) |
QTextStreamPrivate (QTextStream *q_ptr) | |
QString | read (int maxlen) |
const QChar * | readPtr () const |
void | reset () |
void | resetReadBuffer () |
void | restoreToSavedConverterState () |
void | saveConverterState (qint64 newPos) |
bool | scan (const QChar **ptr, int *tokenLength, int maxlen, TokenDelimiter delimiter) |
Scans no more than maxlen QChars in the current buffer for the first delimiter. More... | |
void | ungetChar (const QChar &ch) |
void | write (const QString &data) |
~QTextStreamPrivate () | |
Public Variables | |
bool | autoDetectUnicode |
QTextCodec * | codec |
bool | deleteDevice |
QIODevice * | device |
QDeviceClosedNotifier | deviceClosedNotifier |
QTextStream::FieldAlignment | fieldAlignment |
int | fieldWidth |
int | integerBase |
int | lastTokenSize |
QLocale | locale |
QTextStream::NumberFlags | numberFlags |
QChar | padChar |
QTextStream * | q_ptr |
QString | readBuffer |
int | readBufferOffset |
qint64 | readBufferStartDevicePos |
QTextCodec::ConverterState * | readConverterSavedState |
int | readConverterSavedStateOffset |
QTextCodec::ConverterState | readConverterState |
QTextStream::RealNumberNotation | realNumberNotation |
int | realNumberPrecision |
QTextStream::Status | status |
QString * | string |
int | stringOffset |
QIODevice::OpenMode | stringOpenMode |
QString | writeBuffer |
QTextCodec::ConverterState | writeConverterState |
Definition at line 357 of file qtextstream.cpp.
Enumerator | |
---|---|
npsOk | |
npsMissingDigit | |
npsInvalidPrefix |
Definition at line 404 of file qtextstream.cpp.
Enumerator | |
---|---|
Space | |
NotSpace | |
EndOfLine |
Definition at line 387 of file qtextstream.cpp.
QTextStreamPrivate::QTextStreamPrivate | ( | QTextStream * | q_ptr | ) |
Definition at line 448 of file qtextstream.cpp.
QTextStreamPrivate::~QTextStreamPrivate | ( | ) |
Definition at line 462 of file qtextstream.cpp.
|
inline |
Definition at line 872 of file qtextstream.cpp.
Referenced by consumeLastToken(), and getChar().
|
inline |
Definition at line 863 of file qtextstream.cpp.
Referenced by read().
bool QTextStreamPrivate::fillReadBuffer | ( | qint64 | maxBytes = -1 | ) |
Definition at line 531 of file qtextstream.cpp.
Referenced by getChar(), QTextStream::pos(), read(), and scan().
void QTextStreamPrivate::flushWriteBuffer | ( | ) |
Definition at line 656 of file qtextstream.cpp.
Referenced by write().
|
inline |
Definition at line 948 of file qtextstream.cpp.
QTextStreamPrivate::NumberParsingStatus QTextStreamPrivate::getNumber | ( | qulonglong * | ret | ) |
Definition at line 1731 of file qtextstream.cpp.
bool QTextStreamPrivate::getReal | ( | double * | f | ) |
Definition at line 1907 of file qtextstream.cpp.
void QTextStreamPrivate::putNumber | ( | qulonglong | number, |
bool | negative | ||
) |
Definition at line 2341 of file qtextstream.cpp.
|
inline |
Definition at line 984 of file qtextstream.cpp.
QString QTextStreamPrivate::read | ( | int | maxlen | ) |
Definition at line 728 of file qtextstream.cpp.
|
inline |
Definition at line 853 of file qtextstream.cpp.
Referenced by fillReadBuffer(), getChar(), and scan().
void QTextStreamPrivate::reset | ( | ) |
Definition at line 498 of file qtextstream.cpp.
Referenced by QTextStreamPrivate().
void QTextStreamPrivate::resetReadBuffer | ( | ) |
Definition at line 647 of file qtextstream.cpp.
|
inline |
Definition at line 917 of file qtextstream.cpp.
Referenced by QTextStream::pos().
|
inline |
Definition at line 897 of file qtextstream.cpp.
Referenced by consume().
bool QTextStreamPrivate::scan | ( | const QChar ** | ptr, |
int * | length, | ||
int | maxlen, | ||
TokenDelimiter | delimiter | ||
) |
Scans no more than maxlen QChars in the current buffer for the first delimiter.
Stores a pointer to the start offset of the token in ptr, and the length in QChars in length.
Definition at line 756 of file qtextstream.cpp.
|
inline |
Definition at line 964 of file qtextstream.cpp.
|
inline |
Definition at line 934 of file qtextstream.cpp.
Referenced by putString().
bool QTextStreamPrivate::autoDetectUnicode |
Definition at line 383 of file qtextstream.cpp.
Referenced by fillReadBuffer(), QTextStream::pos(), and reset().
QTextCodec* QTextStreamPrivate::codec |
Definition at line 379 of file qtextstream.cpp.
Referenced by fillReadBuffer(), flushWriteBuffer(), and reset().
bool QTextStreamPrivate::deleteDevice |
Definition at line 370 of file qtextstream.cpp.
Referenced by reset(), and ~QTextStreamPrivate().
QIODevice* QTextStreamPrivate::device |
Definition at line 366 of file qtextstream.cpp.
Referenced by consume(), fillReadBuffer(), flushWriteBuffer(), getChar(), reset(), resetReadBuffer(), scan(), and ~QTextStreamPrivate().
QDeviceClosedNotifier QTextStreamPrivate::deviceClosedNotifier |
Definition at line 368 of file qtextstream.cpp.
QTextStream::FieldAlignment QTextStreamPrivate::fieldAlignment |
Definition at line 434 of file qtextstream.cpp.
Referenced by putString(), and reset().
int QTextStreamPrivate::fieldWidth |
Definition at line 432 of file qtextstream.cpp.
Referenced by putString(), and reset().
int QTextStreamPrivate::integerBase |
Definition at line 431 of file qtextstream.cpp.
Referenced by reset().
int QTextStreamPrivate::lastTokenSize |
Definition at line 401 of file qtextstream.cpp.
Referenced by consumeLastToken(), read(), reset(), and scan().
QLocale QTextStreamPrivate::locale |
Definition at line 441 of file qtextstream.cpp.
Referenced by putString().
QTextStream::NumberFlags QTextStreamPrivate::numberFlags |
Definition at line 436 of file qtextstream.cpp.
Referenced by reset().
QChar QTextStreamPrivate::padChar |
Definition at line 433 of file qtextstream.cpp.
Referenced by putString(), and reset().
QTextStream* QTextStreamPrivate::q_ptr |
Definition at line 443 of file qtextstream.cpp.
Referenced by QTextStreamPrivate().
QString QTextStreamPrivate::readBuffer |
Definition at line 424 of file qtextstream.cpp.
Referenced by consume(), fillReadBuffer(), getChar(), QTextStream::pos(), read(), readPtr(), resetReadBuffer(), scan(), and ungetChar().
int QTextStreamPrivate::readBufferOffset |
Definition at line 425 of file qtextstream.cpp.
Referenced by consume(), fillReadBuffer(), QTextStream::pos(), read(), readPtr(), reset(), resetReadBuffer(), scan(), and ungetChar().
qint64 QTextStreamPrivate::readBufferStartDevicePos |
Definition at line 427 of file qtextstream.cpp.
Referenced by reset(), resetReadBuffer(), and saveConverterState().
QTextCodec::ConverterState* QTextStreamPrivate::readConverterSavedState |
Definition at line 382 of file qtextstream.cpp.
Referenced by reset(), restoreToSavedConverterState(), saveConverterState(), and ~QTextStreamPrivate().
int QTextStreamPrivate::readConverterSavedStateOffset |
Definition at line 426 of file qtextstream.cpp.
Referenced by consume(), QTextStream::pos(), and saveConverterState().
QTextCodec::ConverterState QTextStreamPrivate::readConverterState |
Definition at line 380 of file qtextstream.cpp.
Referenced by fillReadBuffer(), reset(), restoreToSavedConverterState(), and saveConverterState().
QTextStream::RealNumberNotation QTextStreamPrivate::realNumberNotation |
Definition at line 435 of file qtextstream.cpp.
Referenced by reset().
int QTextStreamPrivate::realNumberPrecision |
Definition at line 430 of file qtextstream.cpp.
Referenced by reset().
QTextStream::Status QTextStreamPrivate::status |
Definition at line 439 of file qtextstream.cpp.
Referenced by flushWriteBuffer().
QString* QTextStreamPrivate::string |
int QTextStreamPrivate::stringOffset |
Definition at line 374 of file qtextstream.cpp.
Referenced by consume(), getChar(), read(), readPtr(), reset(), scan(), and ungetChar().
QIODevice::OpenMode QTextStreamPrivate::stringOpenMode |
Definition at line 375 of file qtextstream.cpp.
Referenced by reset().
QString QTextStreamPrivate::writeBuffer |
Definition at line 423 of file qtextstream.cpp.
Referenced by flushWriteBuffer(), and write().
QTextCodec::ConverterState QTextStreamPrivate::writeConverterState |
Definition at line 381 of file qtextstream.cpp.
Referenced by fillReadBuffer(), flushWriteBuffer(), and reset().