QtBase  v6.3.1
Classes | Public Types | Public Member Functions | Public Attributes | List of all members
QTextStreamPrivate Class Reference

#include <qtextstream_p.h>

Collaboration diagram for QTextStreamPrivate:
Collaboration graph
[legend]

Classes

struct  PaddingResult
 
class  Params
 

Public Types

enum  TokenDelimiter { Space , NotSpace , EndOfLine }
 
enum  NumberParsingStatus { npsOk , npsMissingDigit , npsInvalidPrefix }
 

Public Member Functions

 QTextStreamPrivate (QTextStream *q_ptr)
 
 ~QTextStreamPrivate ()
 
void reset ()
 
QString read (int maxlen)
 
bool scan (const QChar **ptr, int *tokenLength, int maxlen, TokenDelimiter delimiter)
 
const QCharreadPtr () const
 
void consumeLastToken ()
 
void consume (int nchars)
 
void saveConverterState (qint64 newPos)
 
void restoreToSavedConverterState ()
 
bool getChar (QChar *ch)
 
void ungetChar (QChar ch)
 
NumberParsingStatus getNumber (qulonglong *l)
 
bool getReal (double *f)
 
void write (const QString &data)
 
void write (QChar ch)
 
void write (const QChar *data, int len)
 
void write (QLatin1String data)
 
void writePadding (int len)
 
void putString (const QString &ch, bool number=false)
 
void putString (const QChar *data, int len, bool number=false)
 
void putString (QLatin1String data, bool number=false)
 
void putString (QUtf8StringView data, bool number=false)
 
void putChar (QChar ch)
 
void putNumber (qulonglong number, bool negative)
 
PaddingResult padding (int len) const
 
bool fillReadBuffer (qint64 maxBytes=-1)
 
void resetReadBuffer ()
 
void flushWriteBuffer ()
 

Public Attributes

QIODevicedevice
 
QDeviceClosedNotifier deviceClosedNotifier
 
QStringstring
 
int stringOffset
 
QIODevice::OpenMode stringOpenMode
 
QStringConverter::Encoding encoding = QStringConverter::Utf8
 
QStringEncoder fromUtf16
 
QStringDecoder toUtf16
 
QStringDecoder savedToUtf16
 
QString writeBuffer
 
QString readBuffer
 
int readBufferOffset
 
int readConverterSavedStateOffset
 
qint64 readBufferStartDevicePos
 
Params params
 
QTextStream::Status status
 
QLocale locale
 
QTextStreamq_ptr
 
int lastTokenSize
 
bool deleteDevice
 
bool autoDetectUnicode
 
bool hasWrittenData = false
 
bool generateBOM = false
 

Detailed Description

Definition at line 91 of file qtextstream_p.h.

Member Enumeration Documentation

◆ NumberParsingStatus

Enumerator
npsOk 
npsMissingDigit 
npsInvalidPrefix 

Definition at line 166 of file qtextstream_p.h.

◆ TokenDelimiter

Enumerator
Space 
NotSpace 
EndOfLine 

Definition at line 150 of file qtextstream_p.h.

Constructor & Destructor Documentation

◆ QTextStreamPrivate()

QT_BEGIN_NAMESPACE QTextStreamPrivate::QTextStreamPrivate ( QTextStream q_ptr)

Definition at line 287 of file qtextstream.cpp.

Here is the call graph for this function:

◆ ~QTextStreamPrivate()

QTextStreamPrivate::~QTextStreamPrivate ( )

Definition at line 298 of file qtextstream.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ consume()

void QTextStreamPrivate::consume ( int  nchars)
inline

Definition at line 666 of file qtextstream.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ consumeLastToken()

void QTextStreamPrivate::consumeLastToken ( )
inline

Definition at line 656 of file qtextstream.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ fillReadBuffer()

bool QTextStreamPrivate::fillReadBuffer ( qint64  maxBytes = -1)

Definition at line 347 of file qtextstream.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ flushWriteBuffer()

void QTextStreamPrivate::flushWriteBuffer ( )

Definition at line 466 of file qtextstream.cpp.

Here is the call graph for this function:

◆ getChar()

bool QTextStreamPrivate::getChar ( QChar ch)
inline

Definition at line 775 of file qtextstream.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getNumber()

QTextStreamPrivate::NumberParsingStatus QTextStreamPrivate::getNumber ( qulonglong l)

Definition at line 1638 of file qtextstream.cpp.

Here is the call graph for this function:

◆ getReal()

bool QTextStreamPrivate::getReal ( double *  f)

Definition at line 1815 of file qtextstream.cpp.

◆ padding()

QTextStreamPrivate::PaddingResult QTextStreamPrivate::padding ( int  len) const

Definition at line 825 of file qtextstream.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ putChar()

void QTextStreamPrivate::putChar ( QChar  ch)
inline

Definition at line 813 of file qtextstream.cpp.

Here is the call graph for this function:

◆ putNumber()

void QTextStreamPrivate::putNumber ( qulonglong  number,
bool  negative 
)

Definition at line 2217 of file qtextstream.cpp.

Here is the call graph for this function:

◆ putString() [1/4]

void QTextStreamPrivate::putString ( const QChar data,
int  len,
bool  number = false 
)

Definition at line 852 of file qtextstream.cpp.

Here is the call graph for this function:

◆ putString() [2/4]

void QTextStreamPrivate::putString ( const QString ch,
bool  number = false 
)
inline

Definition at line 182 of file qtextstream_p.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ putString() [3/4]

void QTextStreamPrivate::putString ( QLatin1String  data,
bool  number = false 
)

Definition at line 881 of file qtextstream.cpp.

Here is the call graph for this function:

◆ putString() [4/4]

void QTextStreamPrivate::putString ( QUtf8StringView  data,
bool  number = false 
)

Definition at line 906 of file qtextstream.cpp.

Here is the call graph for this function:

◆ read()

QString QTextStreamPrivate::read ( int  maxlen)

Definition at line 528 of file qtextstream.cpp.

Here is the call graph for this function:

◆ readPtr()

const QChar * QTextStreamPrivate::readPtr ( ) const
inline

Definition at line 645 of file qtextstream.cpp.

Here is the caller graph for this function:

◆ reset()

void QTextStreamPrivate::reset ( )

Definition at line 322 of file qtextstream.cpp.

Here is the caller graph for this function:

◆ resetReadBuffer()

void QTextStreamPrivate::resetReadBuffer ( )

Definition at line 456 of file qtextstream.cpp.

Here is the call graph for this function:

◆ restoreToSavedConverterState()

void QTextStreamPrivate::restoreToSavedConverterState ( )
inline

Definition at line 703 of file qtextstream.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ saveConverterState()

void QTextStreamPrivate::saveConverterState ( qint64  newPos)
inline

Definition at line 692 of file qtextstream.cpp.

Here is the caller graph for this function:

◆ scan()

bool QTextStreamPrivate::scan ( const QChar **  ptr,
int *  tokenLength,
int  maxlen,
TokenDelimiter  delimiter 
)

Definition at line 554 of file qtextstream.cpp.

Here is the caller graph for this function:

◆ ungetChar()

void QTextStreamPrivate::ungetChar ( QChar  ch)
inline

Definition at line 792 of file qtextstream.cpp.

Here is the caller graph for this function:

◆ write() [1/4]

void QTextStreamPrivate::write ( const QChar data,
int  len 
)

Definition at line 715 of file qtextstream.cpp.

◆ write() [2/4]

void QTextStreamPrivate::write ( const QString data)
inline

Definition at line 177 of file qtextstream_p.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ write() [3/4]

void QTextStreamPrivate::write ( QChar  ch)
inline

Definition at line 730 of file qtextstream.cpp.

◆ write() [4/4]

void QTextStreamPrivate::write ( QLatin1String  data)

Definition at line 745 of file qtextstream.cpp.

◆ writePadding()

void QTextStreamPrivate::writePadding ( int  len)

Definition at line 760 of file qtextstream.cpp.

Member Data Documentation

◆ autoDetectUnicode

bool QTextStreamPrivate::autoDetectUnicode

Definition at line 145 of file qtextstream_p.h.

◆ deleteDevice

bool QTextStreamPrivate::deleteDevice

Definition at line 144 of file qtextstream_p.h.

◆ device

QIODevice* QTextStreamPrivate::device

Definition at line 115 of file qtextstream_p.h.

◆ deviceClosedNotifier

QDeviceClosedNotifier QTextStreamPrivate::deviceClosedNotifier

Definition at line 117 of file qtextstream_p.h.

◆ encoding

QStringConverter::Encoding QTextStreamPrivate::encoding = QStringConverter::Utf8

Definition at line 125 of file qtextstream_p.h.

◆ fromUtf16

QStringEncoder QTextStreamPrivate::fromUtf16

Definition at line 126 of file qtextstream_p.h.

◆ generateBOM

bool QTextStreamPrivate::generateBOM = false

Definition at line 147 of file qtextstream_p.h.

◆ hasWrittenData

bool QTextStreamPrivate::hasWrittenData = false

Definition at line 146 of file qtextstream_p.h.

◆ lastTokenSize

int QTextStreamPrivate::lastTokenSize

Definition at line 143 of file qtextstream_p.h.

◆ locale

QLocale QTextStreamPrivate::locale

Definition at line 140 of file qtextstream_p.h.

◆ params

Params QTextStreamPrivate::params

Definition at line 136 of file qtextstream_p.h.

◆ q_ptr

QTextStream* QTextStreamPrivate::q_ptr

Definition at line 141 of file qtextstream_p.h.

◆ readBuffer

QString QTextStreamPrivate::readBuffer

Definition at line 131 of file qtextstream_p.h.

◆ readBufferOffset

int QTextStreamPrivate::readBufferOffset

Definition at line 132 of file qtextstream_p.h.

◆ readBufferStartDevicePos

qint64 QTextStreamPrivate::readBufferStartDevicePos

Definition at line 134 of file qtextstream_p.h.

◆ readConverterSavedStateOffset

int QTextStreamPrivate::readConverterSavedStateOffset

Definition at line 133 of file qtextstream_p.h.

◆ savedToUtf16

QStringDecoder QTextStreamPrivate::savedToUtf16

Definition at line 128 of file qtextstream_p.h.

◆ status

QTextStream::Status QTextStreamPrivate::status

Definition at line 139 of file qtextstream_p.h.

◆ string

QString* QTextStreamPrivate::string

Definition at line 121 of file qtextstream_p.h.

◆ stringOffset

int QTextStreamPrivate::stringOffset

Definition at line 122 of file qtextstream_p.h.

◆ stringOpenMode

QIODevice::OpenMode QTextStreamPrivate::stringOpenMode

Definition at line 123 of file qtextstream_p.h.

◆ toUtf16

QStringDecoder QTextStreamPrivate::toUtf16

Definition at line 127 of file qtextstream_p.h.

◆ writeBuffer

QString QTextStreamPrivate::writeBuffer

Definition at line 130 of file qtextstream_p.h.


The documentation for this class was generated from the following files: