

Public Member Functions | |
| QStringBuffer (QString *str) | |
| ~QStringBuffer () | |
| bool | open (int m) |
| void | close () |
| void | flush () |
| Offset | size () const |
| Offset | at () const |
| bool | at (Offset pos) |
| Q_LONG | readBlock (char *p, Q_ULONG len) |
| Q_LONG | writeBlock (const char *p, Q_ULONG len) |
| int | getch () |
| int | putch (int ch) |
| int | ungetch (int ch) |
Protected Attributes | |
| QString * | s |
Private Member Functions | |
| QStringBuffer (const QStringBuffer &) | |
| QStringBuffer & | operator= (const QStringBuffer &) |
|
|
Definition at line 310 of file qtextstream.cpp. References s. |
|
|
Definition at line 315 of file qtextstream.cpp. |
|
|
|
|
|
Virtual function that sets the I/O device position to pos. Returns TRUE if the position was successfully set, i.e. pos is within range; otherwise returns FALSE.
Reimplemented from QIODevice. Definition at line 370 of file qtextstream.cpp. References FALSE, QIODevice::ioIndex, QIODevice::isOpen(), QString::length(), qWarning(), s, and TRUE. |
|
|
Virtual function that returns the current I/O device position. This is the position of the data read/write head of the I/O device.
Reimplemented from QIODevice. Definition at line 365 of file qtextstream.cpp. References QIODevice::ioIndex. |
|
|
Closes the I/O device. This virtual function must be reimplemented by all subclasses.
Implements QIODevice. Definition at line 348 of file qtextstream.cpp. References IO_Direct, QIODevice::ioIndex, QIODevice::isOpen(), and QIODevice::setFlags(). |
|
|
Flushes an open I/O device. This virtual function must be reimplemented by all subclasses. Implements QIODevice. Definition at line 356 of file qtextstream.cpp. |
|
|
Reads a single byte/character from the I/O device. Returns the byte/character read, or -1 if the end of the I/O device has been reached. This virtual function must be reimplemented by all subclasses.
Implements QIODevice. Definition at line 449 of file qtextstream.cpp. References IO_ReadError, QIODevice::ioIndex, QIODevice::isOpen(), QIODevice::isReadable(), QString::length(), qWarning(), s, QIODevice::setStatus(), and QString::unicode(). |
|
|
Opens the I/O device using the specified mode. Returns TRUE if the device was successfully opened; otherwise returns FALSE.
The mode parameter mode must be an OR'ed combination of the following flags. Mode flags Meaning This virtual function must be reimplemented by all subclasses.
Implements QIODevice. Definition at line 320 of file qtextstream.cpp. References FALSE, IO_Append, IO_Open, IO_Truncate, QIODevice::ioIndex, QIODevice::isOpen(), QString::length(), qWarning(), s, QIODevice::setMode(), QIODevice::setState(), QIODevice::setStatus(), TRUE, and QString::truncate(). |
|
|
|
|
|
Writes the character ch to the I/O device. Returns ch, or -1 if an error occurred. This virtual function must be reimplemented by all subclasses.
Implements QIODevice. Definition at line 468 of file qtextstream.cpp. References writeBlock(). |
|
||||||||||||
|
Reads at most maxlen bytes from the I/O device into data and returns the number of bytes actually read. This function should return -1 if a fatal error occurs and should return 0 if there are no bytes to read. The device must be opened for reading, and data must not be 0. This virtual function must be reimplemented by all subclasses.
Implements QIODevice. Definition at line 393 of file qtextstream.cpp. References IO_ReadError, QIODevice::ioIndex, QIODevice::isOpen(), QIODevice::isReadable(), QString::length(), qWarning(), s, QIODevice::setStatus(), and QString::unicode(). |
|
|
Virtual function that returns the size of the I/O device.
Implements QIODevice. Definition at line 360 of file qtextstream.cpp. References QString::length(), and s. |
|
|
Puts the character ch back into the I/O device and decrements the index position if it is not zero. This function is normally called to "undo" a getch() operation. Returns ch, or -1 if an error occurred. This virtual function must be reimplemented by all subclasses.
Implements QIODevice. Definition at line 477 of file qtextstream.cpp. References QIODevice::ioIndex, QIODevice::isOpen(), QIODevice::isReadable(), and qWarning(). |
|
||||||||||||
|
Writes len bytes from data to the I/O device and returns the number of bytes actually written. This function should return -1 if a fatal error occurs. This virtual function must be reimplemented by all subclasses.
Implements QIODevice. Definition at line 420 of file qtextstream.cpp. References QIODevice::ioIndex, QIODevice::isOpen(), QIODevice::isWritable(), qWarning(), QString::replace(), and s. Referenced by putch(). |
|
|
Definition at line 302 of file qtextstream.cpp. Referenced by at(), getch(), open(), QStringBuffer(), readBlock(), size(), and writeBlock(). |
1.4.2