summaryrefslogtreecommitdiffstats
path: root/doc/man/man3/tqtextstream.3qt
diff options
context:
space:
mode:
Diffstat (limited to 'doc/man/man3/tqtextstream.3qt')
-rw-r--r--doc/man/man3/tqtextstream.3qt246
1 files changed, 123 insertions, 123 deletions
diff --git a/doc/man/man3/tqtextstream.3qt b/doc/man/man3/tqtextstream.3qt
index 0b99605bf..f9373929c 100644
--- a/doc/man/man3/tqtextstream.3qt
+++ b/doc/man/man3/tqtextstream.3qt
@@ -1,5 +1,5 @@
'\" t
-.TH QTextStream 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*-
+.TH TQTextStream 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*-
.\" Copyright 1992-2007 Trolltech ASA. All rights reserved. See the
.\" license file included in the distribution for a complete license
.\" statement.
@@ -7,13 +7,13 @@
.ad l
.nh
.SH NAME
-QTextStream \- Basic functions for reading and writing text using a TQIODevice
+TQTextStream \- Basic functions for reading and writing text using a TQIODevice
.SH SYNOPSIS
All the functions in this class are reentrant when TQt is built with thread support.</p>
.PP
-\fC#include <ntqtextstream.h>\fR
+\fC#include <tqtextstream.h>\fR
.PP
-Inherited by QTextIStream and QTextOStream.
+Inherited by TQTextIStream and TQTextOStream.
.PP
.SS "Public Members"
.in +1c
@@ -24,31 +24,31 @@ Inherited by QTextIStream and QTextOStream.
.BI "void \fBsetEncoding\fR ( Encoding e )"
.br
.ti -1c
-.BI "void \fBsetCodec\fR ( QTextCodec * codec )"
+.BI "void \fBsetCodec\fR ( TQTextCodec * codec )"
.br
.ti -1c
-.BI "QTextCodec * \fBcodec\fR ()"
+.BI "TQTextCodec * \fBcodec\fR ()"
.br
.ti -1c
-.BI "\fBQTextStream\fR ()"
+.BI "\fBTQTextStream\fR ()"
.br
.ti -1c
-.BI "\fBQTextStream\fR ( TQIODevice * iod )"
+.BI "\fBTQTextStream\fR ( TQIODevice * iod )"
.br
.ti -1c
-.BI "\fBQTextStream\fR ( TQString * str, int filemode )"
+.BI "\fBTQTextStream\fR ( TQString * str, int filemode )"
.br
.ti -1c
-.BI "QTextStream ( TQString & str, int filemode ) \fI(obsolete)\fR"
+.BI "TQTextStream ( TQString & str, int filemode ) \fI(obsolete)\fR"
.br
.ti -1c
-.BI "\fBQTextStream\fR ( QByteArray a, int mode )"
+.BI "\fBTQTextStream\fR ( QByteArray a, int mode )"
.br
.ti -1c
-.BI "\fBQTextStream\fR ( FILE * fh, int mode )"
+.BI "\fBTQTextStream\fR ( FILE * fh, int mode )"
.br
.ti -1c
-.BI "virtual \fB~QTextStream\fR ()"
+.BI "virtual \fB~TQTextStream\fR ()"
.br
.ti -1c
.BI "TQIODevice * \fBdevice\fR () const"
@@ -66,91 +66,91 @@ Inherited by QTextIStream and QTextOStream.
.BI "bool eof () const \fI(obsolete)\fR"
.br
.ti -1c
-.BI "QTextStream & \fBoperator>>\fR ( TQChar & c )"
+.BI "TQTextStream & \fBoperator>>\fR ( TQChar & c )"
.br
.ti -1c
-.BI "QTextStream & \fBoperator>>\fR ( char & c )"
+.BI "TQTextStream & \fBoperator>>\fR ( char & c )"
.br
.ti -1c
-.BI "QTextStream & \fBoperator>>\fR ( signed short & i )"
+.BI "TQTextStream & \fBoperator>>\fR ( signed short & i )"
.br
.ti -1c
-.BI "QTextStream & \fBoperator>>\fR ( unsigned short & i )"
+.BI "TQTextStream & \fBoperator>>\fR ( unsigned short & i )"
.br
.ti -1c
-.BI "QTextStream & \fBoperator>>\fR ( signed int & i )"
+.BI "TQTextStream & \fBoperator>>\fR ( signed int & i )"
.br
.ti -1c
-.BI "QTextStream & \fBoperator>>\fR ( unsigned int & i )"
+.BI "TQTextStream & \fBoperator>>\fR ( unsigned int & i )"
.br
.ti -1c
-.BI "QTextStream & \fBoperator>>\fR ( signed long & i )"
+.BI "TQTextStream & \fBoperator>>\fR ( signed long & i )"
.br
.ti -1c
-.BI "QTextStream & \fBoperator>>\fR ( unsigned long & i )"
+.BI "TQTextStream & \fBoperator>>\fR ( unsigned long & i )"
.br
.ti -1c
-.BI "QTextStream & \fBoperator>>\fR ( float & f )"
+.BI "TQTextStream & \fBoperator>>\fR ( float & f )"
.br
.ti -1c
-.BI "QTextStream & \fBoperator>>\fR ( double & f )"
+.BI "TQTextStream & \fBoperator>>\fR ( double & f )"
.br
.ti -1c
-.BI "QTextStream & \fBoperator>>\fR ( char * s )"
+.BI "TQTextStream & \fBoperator>>\fR ( char * s )"
.br
.ti -1c
-.BI "QTextStream & \fBoperator>>\fR ( TQString & str )"
+.BI "TQTextStream & \fBoperator>>\fR ( TQString & str )"
.br
.ti -1c
-.BI "QTextStream & \fBoperator>>\fR ( QCString & str )"
+.BI "TQTextStream & \fBoperator>>\fR ( QCString & str )"
.br
.ti -1c
-.BI "QTextStream & \fBoperator<<\fR ( TQChar c )"
+.BI "TQTextStream & \fBoperator<<\fR ( TQChar c )"
.br
.ti -1c
-.BI "QTextStream & \fBoperator<<\fR ( char c )"
+.BI "TQTextStream & \fBoperator<<\fR ( char c )"
.br
.ti -1c
-.BI "QTextStream & \fBoperator<<\fR ( signed short i )"
+.BI "TQTextStream & \fBoperator<<\fR ( signed short i )"
.br
.ti -1c
-.BI "QTextStream & \fBoperator<<\fR ( unsigned short i )"
+.BI "TQTextStream & \fBoperator<<\fR ( unsigned short i )"
.br
.ti -1c
-.BI "QTextStream & \fBoperator<<\fR ( signed int i )"
+.BI "TQTextStream & \fBoperator<<\fR ( signed int i )"
.br
.ti -1c
-.BI "QTextStream & \fBoperator<<\fR ( unsigned int i )"
+.BI "TQTextStream & \fBoperator<<\fR ( unsigned int i )"
.br
.ti -1c
-.BI "QTextStream & \fBoperator<<\fR ( signed long i )"
+.BI "TQTextStream & \fBoperator<<\fR ( signed long i )"
.br
.ti -1c
-.BI "QTextStream & \fBoperator<<\fR ( unsigned long i )"
+.BI "TQTextStream & \fBoperator<<\fR ( unsigned long i )"
.br
.ti -1c
-.BI "QTextStream & \fBoperator<<\fR ( float f )"
+.BI "TQTextStream & \fBoperator<<\fR ( float f )"
.br
.ti -1c
-.BI "QTextStream & \fBoperator<<\fR ( double f )"
+.BI "TQTextStream & \fBoperator<<\fR ( double f )"
.br
.ti -1c
-.BI "QTextStream & \fBoperator<<\fR ( const char * s )"
+.BI "TQTextStream & \fBoperator<<\fR ( const char * s )"
.br
.ti -1c
-.BI "QTextStream & \fBoperator<<\fR ( const TQString & s )"
+.BI "TQTextStream & \fBoperator<<\fR ( const TQString & s )"
.br
.ti -1c
-.BI "QTextStream & \fBoperator<<\fR ( const QCString & s )"
+.BI "TQTextStream & \fBoperator<<\fR ( const QCString & s )"
.br
.ti -1c
-.BI "QTextStream & \fBoperator<<\fR ( void * ptr )"
+.BI "TQTextStream & \fBoperator<<\fR ( void * ptr )"
.br
.ti -1c
-.BI "QTextStream & \fBreadRawBytes\fR ( char * s, uint len )"
+.BI "TQTextStream & \fBreadRawBytes\fR ( char * s, uint len )"
.br
.ti -1c
-.BI "QTextStream & \fBwriteRawBytes\fR ( const char * s, uint len )"
+.BI "TQTextStream & \fBwriteRawBytes\fR ( const char * s, uint len )"
.br
.ti -1c
.BI "TQString \fBreadLine\fR ()"
@@ -199,50 +199,50 @@ Inherited by QTextIStream and QTextOStream.
.br
.in -1c
.SH DESCRIPTION
-The QTextStream class provides basic functions for reading and writing text using a TQIODevice.
+The TQTextStream class provides basic functions for reading and writing text using a TQIODevice.
.PP
The text stream class has a functional interface that is very similar to that of the standard C++ iostream class.
.PP
Qt provides several global functions similar to the ones in iostream: <center>.nf
.TS
-l - l. Function Meaning bin sets the QTextStream to read/write binary numbers oct sets the QTextStream to read/write octal numbers dec sets the QTextStream to read/write decimal numbers hex sets the QTextStream to read/write hexadecimal numbers endl forces a line break flush forces the TQIODevice to flush any buffered data ws eats any available whitespace (on input) reset resets the QTextStream to its default mode (see reset()) qSetW(int) sets the field width to the given argument qSetFill(int) sets the fill character to the given argument qSetPrecision(int)
+l - l. Function Meaning bin sets the TQTextStream to read/write binary numbers oct sets the TQTextStream to read/write octal numbers dec sets the TQTextStream to read/write decimal numbers hex sets the TQTextStream to read/write hexadecimal numbers endl forces a line break flush forces the TQIODevice to flush any buffered data ws eats any available whitespace (on input) reset resets the TQTextStream to its default mode (see reset()) qSetW(int) sets the field width to the given argument qSetFill(int) sets the fill character to the given argument qSetPrecision(int)
.TE
.fi
</center>
.PP
-\fBWarning:\fR By default QTextStream 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.
+\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 QTextStream 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 QDataStream 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 QTextStream will auto-detect standard Unicode "byte order marked" text files; otherwise the local 8-bit encoding is used.
+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.
.SS "Member Type Documentation"
-.SH "QTextStream::Encoding"
+.SH "TQTextStream::Encoding"
.TP
-\fCQTextStream::Locale\fR
+\fCTQTextStream::Locale\fR
.TP
-\fCQTextStream::Latin1\fR
+\fCTQTextStream::Latin1\fR
.TP
-\fCQTextStream::Unicode\fR
+\fCTQTextStream::Unicode\fR
.TP
-\fCQTextStream::UnicodeNetworkOrder\fR
+\fCTQTextStream::UnicodeNetworkOrder\fR
.TP
-\fCQTextStream::UnicodeReverse\fR
+\fCTQTextStream::UnicodeReverse\fR
.TP
-\fCQTextStream::RawUnicode\fR
+\fCTQTextStream::RawUnicode\fR
.TP
-\fCQTextStream::UnicodeUTF8\fR
+\fCTQTextStream::UnicodeUTF8\fR
.PP
See setEncoding() for an explanation of the encodings.
.SH MEMBER FUNCTION DOCUMENTATION
-.SH "QTextStream::QTextStream ()"
+.SH "TQTextStream::TQTextStream ()"
Constructs a data stream that has no IO device.
-.SH "QTextStream::QTextStream ( TQIODevice * iod )"
+.SH "TQTextStream::TQTextStream ( TQIODevice * iod )"
Constructs a text stream that uses the IO device \fIiod\fR.
-.SH "QTextStream::QTextStream ( TQString * str, int filemode )"
+.SH "TQTextStream::TQTextStream ( TQString * str, int filemode )"
Constructs a text stream that operates on the Unicode TQString, \fIstr\fR, through an internal device. The \fIfilemode\fR argument is passed to the device's open() function; see TQIODevice::mode().
.PP
If you set an encoding or codec with setEncoding() or setCodec(), this setting is ignored for text streams that operate on TQString.
@@ -253,7 +253,7 @@ Example:
.br
TQString str;
.br
- QTextStream ts( &str, IO_WriteOnly );
+ TQTextStream ts( &str, IO_WriteOnly );
.br
ts << "pi = " << 3.14; // str == "pi = 3.14"
.br
@@ -265,18 +265,18 @@ Writing data to the text stream will modify the contents of the string. The stri
.br
TQString str = "pi = 3.14";
.br
- QTextStream ts( &str, IO_WriteOnly );
+ TQTextStream ts( &str, IO_WriteOnly );
.br
ts << "2+2 = " << 2+2; // str == "2+2 = 414"
.br
.fi
.PP
Note that because TQString is Unicode, you should not use readRawBytes() or writeRawBytes() on such a stream.
-.SH "QTextStream::QTextStream ( TQString & str, int filemode )"
+.SH "TQTextStream::TQTextStream ( TQString & str, int filemode )"
\fBThis function is obsolete.\fR It is provided to keep old source working. We strongly advise against using it in new code.
.PP
This constructor is equivalent to the constructor taking a TQString* parameter.
-.SH "QTextStream::QTextStream ( QByteArray a, int mode )"
+.SH "TQTextStream::TQTextStream ( QByteArray 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().
.PP
Example:
@@ -285,7 +285,7 @@ Example:
.br
QByteArray array;
.br
- QTextStream ts( array, IO_WriteOnly );
+ TQTextStream ts( array, IO_WriteOnly );
.br
ts << "pi = " << 3.14 << '\\0'; // array == "pi = 3.14"
.br
@@ -303,39 +303,39 @@ Same example, using a QBuffer:
.br
buf.open( IO_WriteOnly );
.br
- QTextStream ts( &buf );
+ TQTextStream ts( &buf );
.br
ts << "pi = " << 3.14 << '\\0'; // array == "pi = 3.14"
.br
buf.close();
.br
.fi
-.SH "QTextStream::QTextStream ( FILE * fh, int mode )"
+.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().
.PP
-Note that if you create a QTextStream \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 "QTextStream::~QTextStream ()\fC [virtual]\fR"
+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"
Destroys the text stream.
.PP
The destructor does not affect the current IO device.
-.SH "bool QTextStream::atEnd () const"
+.SH "bool TQTextStream::atEnd () const"
Returns TRUE if the IO device has reached the end position (end of the stream or file) or if there is no IO device set; otherwise returns FALSE.
.PP
See also TQIODevice::atEnd().
.PP
Examples:
.)l addressbook/centralwidget.cpp and grapher/grapher.cpp.
-.SH "QTextCodec * QTextStream::codec ()"
+.SH "TQTextCodec * TQTextStream::codec ()"
Returns the codec actually used for this stream.
.PP
If Unicode is automatically detected in input, a codec with name() "ISO-10646-UCS-2" is returned.
.PP
See also setCodec().
-.SH "TQIODevice * QTextStream::device () const"
+.SH "TQIODevice * TQTextStream::device () const"
Returns the IO device currently set.
.PP
See also setDevice() and unsetDevice().
-.SH "bool QTextStream::eof () const"
+.SH "bool TQTextStream::eof () const"
\fBThis function is obsolete.\fR It is provided to keep old source working. We strongly advise against using it in new code.
.PP
This function has been renamed to atEnd().
@@ -343,13 +343,13 @@ This function has been renamed to atEnd().
See also TQIODevice::atEnd().
.PP
Example: chart/chartform_files.cpp.
-.SH "int QTextStream::fill () const"
+.SH "int TQTextStream::fill () const"
Returns the fill character. The default value is ' ' (space).
-.SH "int QTextStream::fill ( int f )"
+.SH "int TQTextStream::fill ( int f )"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
Sets the fill character to \fIf\fR. Returns the previous fill character.
-.SH "int QTextStream::flags () const"
+.SH "int TQTextStream::flags () const"
Returns the current stream flags. The default value is 0.
.PP
<center>.nf
@@ -379,144 +379,144 @@ Flag Meaning
Note that unless \fCbin\fR, \fCoct\fR, \fCdec\fR, or \fChex\fR is set, the input base is octal if the value starts with 0, hexadecimal if it starts with 0x, binary if it starts with 0b, and decimal otherwise.
.PP
See also setf() and unsetf().
-.SH "int QTextStream::flags ( int f )"
+.SH "int TQTextStream::flags ( int f )"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
Sets the stream flags to \fIf\fR. Returns the previous stream flags.
.PP
See also setf() and unsetf().
-.SH "QTextStream & QTextStream::operator<< ( TQChar c )"
+.SH "TQTextStream & TQTextStream::operator<< ( TQChar c )"
Writes character \fCchar\fR to the stream and returns a reference to the stream.
.PP
-The character \fIc\fR is assumed to be Latin1 encoded independent of the Encoding set for the QTextStream.
-.SH "QTextStream & QTextStream::operator<< ( char c )"
+The character \fIc\fR is assumed to be Latin1 encoded independent of the Encoding set for the TQTextStream.
+.SH "TQTextStream & TQTextStream::operator<< ( char c )"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
Writes character \fIc\fR to the stream and returns a reference to the stream.
-.SH "QTextStream & QTextStream::operator<< ( signed short i )"
+.SH "TQTextStream & TQTextStream::operator<< ( signed short i )"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
Writes a \fCshort\fR integer \fIi\fR to the stream and returns a reference to the stream.
-.SH "QTextStream & QTextStream::operator<< ( unsigned short i )"
+.SH "TQTextStream & TQTextStream::operator<< ( unsigned short i )"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
Writes an \fCunsigned\fR \fCshort\fR integer \fIi\fR to the stream and returns a reference to the stream.
-.SH "QTextStream & QTextStream::operator<< ( signed int i )"
+.SH "TQTextStream & TQTextStream::operator<< ( signed int i )"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
Writes an \fCint\fR \fIi\fR to the stream and returns a reference to the stream.
-.SH "QTextStream & QTextStream::operator<< ( unsigned int i )"
+.SH "TQTextStream & TQTextStream::operator<< ( unsigned int i )"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
Writes an \fCunsigned\fR \fCint\fR \fIi\fR to the stream and returns a reference to the stream.
-.SH "QTextStream & QTextStream::operator<< ( signed long i )"
+.SH "TQTextStream & TQTextStream::operator<< ( signed long i )"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
Writes a \fClong\fR \fCint\fR \fIi\fR to the stream and returns a reference to the stream.
-.SH "QTextStream & QTextStream::operator<< ( unsigned long i )"
+.SH "TQTextStream & TQTextStream::operator<< ( unsigned long i )"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
Writes an \fCunsigned\fR \fClong\fR \fCint\fR \fIi\fR to the stream and returns a reference to the stream.
-.SH "QTextStream & QTextStream::operator<< ( float f )"
+.SH "TQTextStream & TQTextStream::operator<< ( float f )"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
Writes a \fCfloat\fR \fIf\fR to the stream and returns a reference to the stream.
-.SH "QTextStream & QTextStream::operator<< ( double f )"
+.SH "TQTextStream & TQTextStream::operator<< ( double f )"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
Writes a \fCdouble\fR \fIf\fR to the stream and returns a reference to the stream.
-.SH "QTextStream & QTextStream::operator<< ( const char * s )"
+.SH "TQTextStream & TQTextStream::operator<< ( const char * s )"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
Writes a string to the stream and returns a reference to the stream.
.PP
-The string \fIs\fR is assumed to be Latin1 encoded independent of the Encoding set for the QTextStream.
-.SH "QTextStream & QTextStream::operator<< ( const TQString & s )"
+The string \fIs\fR is assumed to be Latin1 encoded independent of the Encoding set for the TQTextStream.
+.SH "TQTextStream & TQTextStream::operator<< ( const TQString & s )"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
Writes \fIs\fR to the stream and returns a reference to the stream.
-.SH "QTextStream & QTextStream::operator<< ( const QCString & s )"
+.SH "TQTextStream & TQTextStream::operator<< ( const QCString & s )"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
Writes \fIs\fR to the stream and returns a reference to the stream.
.PP
-The string \fIs\fR is assumed to be Latin1 encoded independent of the Encoding set for the QTextStream.
-.SH "QTextStream & QTextStream::operator<< ( void * ptr )"
+The string \fIs\fR is assumed to be Latin1 encoded independent of the Encoding set for the TQTextStream.
+.SH "TQTextStream & TQTextStream::operator<< ( void * ptr )"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
Writes a pointer to the stream and returns a reference to the stream.
.PP
The \fIptr\fR is output as an unsigned long hexadecimal integer.
-.SH "QTextStream & QTextStream::operator>> ( TQChar & c )"
+.SH "TQTextStream & TQTextStream::operator>> ( TQChar & c )"
Reads a char \fIc\fR from the stream and returns a reference to the stream. Note that whitespace is \fInot\fR skipped.
-.SH "QTextStream & QTextStream::operator>> ( char & c )"
+.SH "TQTextStream & TQTextStream::operator>> ( char & c )"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
Reads a char \fIc\fR from the stream and returns a reference to the stream. Note that whitespace is skipped.
-.SH "QTextStream & QTextStream::operator>> ( signed short & i )"
+.SH "TQTextStream & TQTextStream::operator>> ( signed short & i )"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
Reads a signed \fCshort\fR integer \fIi\fR from the stream and returns a reference to the stream. See flags() for an explanation of the expected input format.
-.SH "QTextStream & QTextStream::operator>> ( unsigned short & i )"
+.SH "TQTextStream & TQTextStream::operator>> ( unsigned short & i )"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
Reads an unsigned \fCshort\fR integer \fIi\fR from the stream and returns a reference to the stream. See flags() for an explanation of the expected input format.
-.SH "QTextStream & QTextStream::operator>> ( signed int & i )"
+.SH "TQTextStream & TQTextStream::operator>> ( signed int & i )"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
Reads a signed \fCint\fR \fIi\fR from the stream and returns a reference to the stream. See flags() for an explanation of the expected input format.
-.SH "QTextStream & QTextStream::operator>> ( unsigned int & i )"
+.SH "TQTextStream & TQTextStream::operator>> ( unsigned int & i )"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
Reads an unsigned \fCint\fR \fIi\fR from the stream and returns a reference to the stream. See flags() for an explanation of the expected input format.
-.SH "QTextStream & QTextStream::operator>> ( signed long & i )"
+.SH "TQTextStream & TQTextStream::operator>> ( signed long & i )"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
Reads a signed \fClong\fR int \fIi\fR from the stream and returns a reference to the stream. See flags() for an explanation of the expected input format.
-.SH "QTextStream & QTextStream::operator>> ( unsigned long & i )"
+.SH "TQTextStream & TQTextStream::operator>> ( unsigned long & i )"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
Reads an unsigned \fClong\fR int \fIi\fR from the stream and returns a reference to the stream. See flags() for an explanation of the expected input format.
-.SH "QTextStream & QTextStream::operator>> ( float & f )"
+.SH "TQTextStream & TQTextStream::operator>> ( float & f )"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
Reads a \fCfloat\fR \fIf\fR from the stream and returns a reference to the stream. See flags() for an explanation of the expected input format.
-.SH "QTextStream & QTextStream::operator>> ( double & f )"
+.SH "TQTextStream & TQTextStream::operator>> ( double & f )"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
Reads a \fCdouble\fR \fIf\fR from the stream and returns a reference to the stream. See flags() for an explanation of the expected input format.
-.SH "QTextStream & QTextStream::operator>> ( char * s )"
+.SH "TQTextStream & TQTextStream::operator>> ( char * s )"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
Reads a "word" from the stream into \fIs\fR and returns a reference to the stream.
.PP
A word consists of characters for which isspace() returns FALSE.
-.SH "QTextStream & QTextStream::operator>> ( TQString & str )"
+.SH "TQTextStream & TQTextStream::operator>> ( TQString & str )"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
Reads a "word" from the stream into \fIstr\fR and returns a reference to the stream.
.PP
A word consists of characters for which isspace() returns FALSE.
-.SH "QTextStream & QTextStream::operator>> ( QCString & str )"
+.SH "TQTextStream & TQTextStream::operator>> ( QCString & str )"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
Reads a "word" from the stream into \fIstr\fR and returns a reference to the stream.
.PP
A word consists of characters for which isspace() returns FALSE.
-.SH "int QTextStream::precision () const"
+.SH "int TQTextStream::precision () const"
Returns the precision. The default value is 6.
-.SH "int QTextStream::precision ( int p )"
+.SH "int TQTextStream::precision ( int p )"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
Sets the precision to \fIp\fR. Returns the previous precision setting.
-.SH "TQString QTextStream::read ()"
+.SH "TQString TQTextStream::read ()"
Reads the entire stream from the current position, and returns a string containing the text.
.PP
See also TQIODevice::readLine().
.PP
Examples:
.)l action/application.cpp, application/application.cpp, mdi/application.cpp, qdir/qdir.cpp, and qwerty/qwerty.cpp.
-.SH "TQString QTextStream::readLine ()"
+.SH "TQString TQTextStream::readLine ()"
Reads a line from the stream and returns a string containing the text.
.PP
The returned string does not contain any trailing newline or carriage return. Note that this is different from TQIODevice::readLine(), which does not strip the newline at the end of the line.
@@ -527,7 +527,7 @@ See also TQIODevice::readLine().
.PP
Examples:
.)l addressbook/centralwidget.cpp, chart/element.cpp, and network/clientserver/server/server.cpp.
-.SH "QTextStream & QTextStream::readRawBytes ( char * s, uint len )"
+.SH "TQTextStream & TQTextStream::readRawBytes ( char * s, uint len )"
Reads \fIlen\fR bytes from the stream into \fIs\fR and returns a reference to the stream.
.PP
The buffer \fIs\fR must be preallocated.
@@ -537,7 +537,7 @@ Note that no encoding is done by this function.
\fBWarning:\fR The behavior of this function is undefined unless the stream's encoding is set to Unicode or Latin1.
.PP
See also TQIODevice::readBlock().
-.SH "void QTextStream::reset ()"
+.SH "void TQTextStream::reset ()"
Resets the text stream.
.TP
All flags are set to 0.
@@ -549,7 +549,7 @@ The fill character is set to ' ' (Space).
The precision is set to 6.
.PP
See also setf(), width(), fill(), and precision().
-.SH "void QTextStream::setCodec ( QTextCodec * codec )"
+.SH "void TQTextStream::setCodec ( TQTextCodec * codec )"
Sets the codec for this stream to \fIcodec\fR. Will not try to autodetect Unicode.
.PP
Note that this function should be called before any data is read to/written from the stream.
@@ -557,11 +557,11 @@ Note that this function should be called before any data is read to/written from
See also setEncoding() and codec().
.PP
Example: qwerty/qwerty.cpp.
-.SH "void QTextStream::setDevice ( TQIODevice * iod )"
+.SH "void TQTextStream::setDevice ( TQIODevice * iod )"
Sets the IO device to \fIiod\fR.
.PP
See also device() and unsetDevice().
-.SH "void QTextStream::setEncoding ( Encoding e )"
+.SH "void TQTextStream::setEncoding ( Encoding e )"
Sets the encoding of this stream to \fIe\fR, where \fIe\fR is one of the following values: <center>.nf
.TS
l - l. Encoding Meaning Locale Uses local file format (Latin1 if locale is not set), but autodetecting Unicode(utf16) on input. Unicode Uses Unicode(utf16) for input and output. Output will be written in the order most efficient for the current platform (i.e. the order used internally in TQString). UnicodeUTF8 Using Unicode(utf8) for input and output. If you use it for input it will autodetect utf16 and use it instead of utf8. Latin1 ISO-8859-1. Will not autodetect utf16. UnicodeNetworkOrder Uses network order Unicode(utf16) for input and output. Useful when reading Unicode data that does not start with the byte order marker. UnicodeReverse Uses reverse network order Unicode(utf16) for input and output. Useful when reading Unicode data that does not start with the byte order marker or when writing data that should be read by buggy Windows applications. RawUnicode
@@ -577,13 +577,13 @@ See also setCodec().
.PP
Examples:
.)l addressbook/centralwidget.cpp, network/httpd/httpd.cpp, and qwerty/qwerty.cpp.
-.SH "int QTextStream::setf ( int bits )"
+.SH "int TQTextStream::setf ( int bits )"
Sets the stream flag bits \fIbits\fR. Returns the previous stream flags.
.PP
Equivalent to \fCflags( flags() | bits )\fR.
.PP
See also unsetf().
-.SH "int QTextStream::setf ( int bits, int mask )"
+.SH "int TQTextStream::setf ( int bits, int mask )"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
Sets the stream flag bits \fIbits\fR with a bit mask \fImask\fR. Returns the previous stream flags.
@@ -591,25 +591,25 @@ Sets the stream flag bits \fIbits\fR with a bit mask \fImask\fR. Returns the pre
Equivalent to \fCflags( (flags() & ~mask) | (bits & mask) )\fR.
.PP
See also unsetf().
-.SH "void QTextStream::skipWhiteSpace ()"
+.SH "void TQTextStream::skipWhiteSpace ()"
Positions the read pointer at the first non-whitespace character.
-.SH "void QTextStream::unsetDevice ()"
+.SH "void TQTextStream::unsetDevice ()"
Unsets the IO device. Equivalent to setDevice( 0 ).
.PP
See also device() and setDevice().
-.SH "int QTextStream::unsetf ( int bits )"
+.SH "int TQTextStream::unsetf ( int bits )"
Clears the stream flag bits \fIbits\fR. Returns the previous stream flags.
.PP
Equivalent to \fCflags( flags() & ~mask )\fR.
.PP
See also setf().
-.SH "int QTextStream::width () const"
+.SH "int TQTextStream::width () const"
Returns the field width. The default value is 0.
-.SH "int QTextStream::width ( int w )"
+.SH "int TQTextStream::width ( int w )"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
Sets the field width to \fIw\fR. Returns the previous field width.
-.SH "QTextStream & QTextStream::writeRawBytes ( const char * s, uint len )"
+.SH "TQTextStream & TQTextStream::writeRawBytes ( const char * s, uint len )"
Writes the \fIlen\fR bytes from \fIs\fR to the stream and returns a reference to the stream.
.PP
Note that no encoding is done by this function.
@@ -617,7 +617,7 @@ Note that no encoding is done by this function.
See also TQIODevice::writeBlock().
.SH "SEE ALSO"
-.BR http://doc.trolltech.com/ntqtextstream.html
+.BR http://doc.trolltech.com/tqtextstream.html
.BR http://www.trolltech.com/faq/tech.html
.SH COPYRIGHT
Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the