diff options
Diffstat (limited to 'doc/man/man3/tqtextstream.3qt')
-rw-r--r-- | doc/man/man3/tqtextstream.3qt | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/doc/man/man3/tqtextstream.3qt b/doc/man/man3/tqtextstream.3qt index c03c81006..41682ee1e 100644 --- a/doc/man/man3/tqtextstream.3qt +++ b/doc/man/man3/tqtextstream.3qt @@ -212,13 +212,13 @@ l - l. Function Meaning bin sets the TQTextStream to read/write binary numbers o .PP \fBWarning:\fR By default TQTextStream will automatically detect whether integers in the stream are in decimal, octal, hexadecimal or binary format when reading from the stream. In particular, a leading '0' signifies octal, i.e. the sequence "0100" will be interpreted as 64. .PP -The TQTextStream class reads and writes text; it is not appropriate for dealing with binary data (but QDataStream is). +The TQTextStream class reads and writes text; it is not appropriate for dealing with binary data (but TQDataStream is). .PP By default, output of Unicode text (i.e. TQString) is done using the local 8-bit encoding. This can be changed using the setEncoding() method. For input, the TQTextStream will auto-detect standard Unicode "byte order marked" text files; otherwise the local 8-bit encoding is used. .PP The TQIODevice is set in the constructor, or later using setDevice(). If the end of the input is reached atEnd() returns TRUE. Data can be read into variables of the appropriate type using the operator>>() overloads, or read in its entirety into a single string using read(), or read a line at a time using readLine(). Whitespace can be skipped over using skipWhiteSpace(). You can set flags for the stream using flags() or setf(). The stream also supports width(), precision() and fill(); use reset() to reset the defaults. .PP -See also QDataStream, Input/Output and Networking, and Text Related Classes. +See also TQDataStream, Input/Output and Networking, and Text Related Classes. .SS "Member Type Documentation" .SH "TQTextStream::Encoding" .TP @@ -277,7 +277,7 @@ Note that because TQString is Unicode, you should not use readRawBytes() or writ .PP This constructor is equivalent to the constructor taking a TQString* parameter. .SH "TQTextStream::TQTextStream ( TQByteArray a, int mode )" -Constructs a text stream that operates on the byte array, \fIa\fR, through an internal QBuffer device. The \fImode\fR argument is passed to the device's open() function; see TQIODevice::mode(). +Constructs a text stream that operates on the byte array, \fIa\fR, through an internal TQBuffer device. The \fImode\fR argument is passed to the device's open() function; see TQIODevice::mode(). .PP Example: .PP @@ -293,13 +293,13 @@ Example: .PP Writing data to the text stream will modify the contents of the array. The array will be expanded when data is written beyond the end of the string. .PP -Same example, using a QBuffer: +Same example, using a TQBuffer: .PP .nf .br TQByteArray array; .br - QBuffer buf( array ); + TQBuffer buf( array ); .br buf.open( IO_WriteOnly ); .br @@ -311,7 +311,7 @@ Same example, using a QBuffer: .br .fi .SH "TQTextStream::TQTextStream ( FILE * fh, int mode )" -Constructs a text stream that operates on an existing file handle \fIfh\fR through an internal QFile device. The \fImode\fR argument is passed to the device's open() function; see TQIODevice::mode(). +Constructs a text stream that operates on an existing file handle \fIfh\fR through an internal TQFile device. The \fImode\fR argument is passed to the device's open() function; see TQIODevice::mode(). .PP Note that if you create a TQTextStream \fCcout\fR or another name that is also used for another variable of a different type, some linkers may confuse the two variables, which will often cause crashes. .SH "TQTextStream::~TQTextStream ()\fC [virtual]\fR" @@ -515,7 +515,7 @@ Reads the entire stream from the current position, and returns a string containi See also TQIODevice::readLine(). .PP Examples: -.)l action/application.cpp, application/application.cpp, mdi/application.cpp, qdir/qdir.cpp, and qwerty/qwerty.cpp. +.)l action/application.cpp, application/application.cpp, mdi/application.cpp, tqdir/tqdir.cpp, and qwerty/qwerty.cpp. .SH "TQString TQTextStream::readLine ()" Reads a line from the stream and returns a string containing the text. .PP |