diff options
Diffstat (limited to 'doc/html/tqtextstream.html')
-rw-r--r-- | doc/html/tqtextstream.html | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/doc/html/tqtextstream.html b/doc/html/tqtextstream.html index 37799be63..62b606a1c 100644 --- a/doc/html/tqtextstream.html +++ b/doc/html/tqtextstream.html @@ -106,7 +106,7 @@ and writing text using a TQIODevice. The TQTextStream class provides basic functions for reading -and writing text using a <a href="ntqiodevice.html">TQIODevice</a>. +and writing text using a <a href="tqiodevice.html">TQIODevice</a>. <p> @@ -134,13 +134,13 @@ binary format when reading from the stream. In particular, a leading '0' signifies octal, i.e. the sequence "0100" will be interpreted as 64. <p> The TQTextStream class reads and writes text; it is not appropriate -for dealing with binary data (but <a href="ntqdatastream.html">TQDataStream</a> is). +for dealing with binary data (but <a href="tqdatastream.html">TQDataStream</a> is). <p> By default, output of Unicode text (i.e. <a href="tqstring.html">TQString</a>) is done using the local 8-bit encoding. This can be changed using the <a href="#setEncoding">setEncoding</a>() method. For input, the TQTextStream will auto-detect standard Unicode "byte order marked" text files; otherwise the local 8-bit encoding is used. -<p> The <a href="ntqiodevice.html">TQIODevice</a> is set in the constructor, or later using +<p> The <a href="tqiodevice.html">TQIODevice</a> is set in the constructor, or later using <a href="#setDevice">setDevice</a>(). If the end of the input is reached <a href="#atEnd">atEnd</a>() returns TRUE. Data can be read into variables of the appropriate type using the <a href="#operator-gt-gt">operator>></a>() overloads, or read in its entirety into a @@ -149,7 +149,7 @@ single string using <a href="#read">read</a>(), or read a line at a time using You can set flags for the stream using <a href="#flags">flags</a>() or <a href="#setf">setf</a>(). The stream also supports <a href="#width">width</a>(), <a href="#precision">precision</a>() and <a href="#fill">fill</a>(); use <a href="#reset">reset</a>() to reset the defaults. -<p> <p>See also <a href="ntqdatastream.html">TQDataStream</a>, <a href="io.html">Input/Output and Networking</a>, and <a href="text.html">Text Related Classes</a>. +<p> <p>See also <a href="tqdatastream.html">TQDataStream</a>, <a href="io.html">Input/Output and Networking</a>, and <a href="text.html">Text Related Classes</a>. <hr><h2>Member Type Documentation</h2> <h3 class=fn><a name="Encoding-enum"></a>TQTextStream::Encoding</h3> @@ -169,20 +169,20 @@ to reset the defaults. </h3> Constructs a data stream that has no IO device. -<h3 class=fn><a name="TQTextStream-2"></a>TQTextStream::TQTextStream ( <a href="ntqiodevice.html">TQIODevice</a> * iod ) +<h3 class=fn><a name="TQTextStream-2"></a>TQTextStream::TQTextStream ( <a href="tqiodevice.html">TQIODevice</a> * iod ) </h3> Constructs a text stream that uses the IO device <em>iod</em>. <h3 class=fn><a name="TQTextStream-3"></a>TQTextStream::TQTextStream ( <a href="tqstring.html">TQString</a> * str, int filemode ) </h3> Constructs a text stream that operates on the Unicode <a href="tqstring.html">TQString</a>, <em>str</em>, through an internal device. The <em>filemode</em> argument is -passed to the device's open() function; see <a href="ntqiodevice.html#mode">TQIODevice::mode</a>(). +passed to the device's open() function; see <a href="tqiodevice.html#mode">TQIODevice::mode</a>(). <p> If you set an encoding or codec with <a href="#setEncoding">setEncoding</a>() or <a href="#setCodec">setCodec</a>(), this setting is ignored for text streams that operate on TQString. <p> Example: <pre> <a href="tqstring.html">TQString</a> str; - TQTextStream ts( &str, <a href="ntqfile.html#open">IO_WriteOnly</a> ); + TQTextStream ts( &str, <a href="tqfile.html#open">IO_WriteOnly</a> ); ts << "pi = " << 3.14; // str == "pi = 3.14" </pre> @@ -206,12 +206,12 @@ parameter. <h3 class=fn><a name="TQTextStream-5"></a>TQTextStream::TQTextStream ( <a href="tqbytearray.html">TQByteArray</a> a, int mode ) </h3> Constructs a text stream that operates on the byte array, <em>a</em>, -through an internal <a href="ntqbuffer.html">TQBuffer</a> device. The <em>mode</em> argument is passed -to the device's open() function; see <a href="ntqiodevice.html#mode">TQIODevice::mode</a>(). +through an internal <a href="tqbuffer.html">TQBuffer</a> device. The <em>mode</em> argument is passed +to the device's open() function; see <a href="tqiodevice.html#mode">TQIODevice::mode</a>(). <p> Example: <pre> <a href="tqbytearray.html">TQByteArray</a> array; - TQTextStream ts( array, <a href="ntqfile.html#open">IO_WriteOnly</a> ); + TQTextStream ts( array, <a href="tqfile.html#open">IO_WriteOnly</a> ); ts << "pi = " << 3.14 << '\0'; // array == "pi = 3.14" </pre> @@ -221,19 +221,19 @@ end of the string. <p> Same example, using a TQBuffer: <pre> <a href="tqbytearray.html">TQByteArray</a> array; - <a href="ntqbuffer.html">TQBuffer</a> buf( array ); - buf.<a href="ntqiodevice.html#open">open</a>( IO_WriteOnly ); + <a href="tqbuffer.html">TQBuffer</a> buf( array ); + buf.<a href="tqiodevice.html#open">open</a>( IO_WriteOnly ); TQTextStream ts( &buf ); ts << "pi = " << 3.14 << '\0'; // array == "pi = 3.14" - buf.<a href="ntqiodevice.html#close">close</a>(); + buf.<a href="tqiodevice.html#close">close</a>(); </pre> <h3 class=fn><a name="TQTextStream-6"></a>TQTextStream::TQTextStream ( FILE * fh, int mode ) </h3> Constructs a text stream that operates on an existing file handle -<em>fh</em> through an internal <a href="ntqfile.html">TQFile</a> device. The <em>mode</em> argument is -passed to the device's open() function; see <a href="ntqiodevice.html#mode">TQIODevice::mode</a>(). +<em>fh</em> through an internal <a href="tqfile.html">TQFile</a> device. The <em>mode</em> argument is +passed to the device's open() function; see <a href="tqiodevice.html#mode">TQIODevice::mode</a>(). <p> Note that if you create a TQTextStream <tt>cout</tt> 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 @@ -250,7 +250,7 @@ Destroys the text stream. <p> 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. -<p> <p>See also <a href="ntqiodevice.html#atEnd">TQIODevice::atEnd</a>(). +<p> <p>See also <a href="tqiodevice.html#atEnd">TQIODevice::atEnd</a>(). <p>Examples: <a href="addressbook-example.html#x601">addressbook/centralwidget.cpp</a> and <a href="grapher-nsplugin-example.html#x2774">grapher/grapher.cpp</a>. <h3 class=fn><a href="tqtextcodec.html">TQTextCodec</a> * <a name="codec"></a>TQTextStream::codec () @@ -259,7 +259,7 @@ Returns the codec actually used for this stream. <p> If Unicode is automatically detected in input, a codec with <a href="tqtextcodec.html#name">name()</a> "ISO-10646-UCS-2" is returned. <p> <p>See also <a href="#setCodec">setCodec</a>(). -<h3 class=fn><a href="ntqiodevice.html">TQIODevice</a> * <a name="device"></a>TQTextStream::device () const +<h3 class=fn><a href="tqiodevice.html">TQIODevice</a> * <a name="device"></a>TQTextStream::device () const </h3> <p> Returns the IO device currently set. @@ -269,7 +269,7 @@ Returns the codec actually used for this stream. </h3> <p> <b>This function is obsolete.</b> It is provided to keep old source working. We strongly advise against using it in new code. <p> This function has been renamed to <a href="#atEnd">atEnd</a>(). -<p> <p>See also <a href="ntqiodevice.html#atEnd">TQIODevice::atEnd</a>(). +<p> <p>See also <a href="tqiodevice.html#atEnd">TQIODevice::atEnd</a>(). <p>Example: <a href="tutorial2-07.html#x2592">chart/chartform_files.cpp</a>. <h3 class=fn>int <a name="fill"></a>TQTextStream::fill () const @@ -510,20 +510,20 @@ to the stream. </h3> Reads the entire stream from the current position, and returns a string containing the text. -<p> <p>See also <a href="ntqiodevice.html#readLine">TQIODevice::readLine</a>(). +<p> <p>See also <a href="tqiodevice.html#readLine">TQIODevice::readLine</a>(). -<p>Examples: <a href="tqaction-application-example.html#x1171">action/application.cpp</a>, <a href="simple-application-example.html#x1589">application/application.cpp</a>, <a href="mdi-example.html#x2074">mdi/application.cpp</a>, <a href="qdir-example.html#x1847">qdir/qdir.cpp</a>, and <a href="qwerty-example.html#x401">qwerty/qwerty.cpp</a>. +<p>Examples: <a href="tqaction-application-example.html#x1171">action/application.cpp</a>, <a href="simple-application-example.html#x1589">application/application.cpp</a>, <a href="mdi-example.html#x2074">mdi/application.cpp</a>, <a href="tqdir-example.html#x1847">tqdir/tqdir.cpp</a>, and <a href="qwerty-example.html#x401">qwerty/qwerty.cpp</a>. <h3 class=fn><a href="tqstring.html">TQString</a> <a name="readLine"></a>TQTextStream::readLine () </h3> Reads a line from the stream and returns a string containing the text. <p> The returned string does not contain any trailing newline or carriage return. Note that this is different from -<a href="ntqiodevice.html#readLine">TQIODevice::readLine</a>(), which does not strip the newline at the end +<a href="tqiodevice.html#readLine">TQIODevice::readLine</a>(), which does not strip the newline at the end of the line. <p> On EOF you will get a <a href="tqstring.html">TQString</a> that is null. On reading an empty line the returned TQString is empty but not null. -<p> <p>See also <a href="ntqiodevice.html#readLine">TQIODevice::readLine</a>(). +<p> <p>See also <a href="tqiodevice.html#readLine">TQIODevice::readLine</a>(). <p>Examples: <a href="addressbook-example.html#x602">addressbook/centralwidget.cpp</a>, <a href="tutorial2-03.html#x2553">chart/element.cpp</a>, and <a href="clientserver-example.html#x787">network/clientserver/server/server.cpp</a>. <h3 class=fn><a href="tqtextstream.html">TQTextStream</a> & <a name="readRawBytes"></a>TQTextStream::readRawBytes ( char * s, uint len ) @@ -534,7 +534,7 @@ reference to the stream. <p> Note that no encoding is done by this function. <p> <b>Warning:</b> The behavior of this function is undefined unless the stream's encoding is set to Unicode or Latin1. -<p> <p>See also <a href="ntqiodevice.html#readBlock">TQIODevice::readBlock</a>(). +<p> <p>See also <a href="tqiodevice.html#readBlock">TQIODevice::readBlock</a>(). <h3 class=fn>void <a name="reset"></a>TQTextStream::reset () </h3> @@ -556,7 +556,7 @@ to/written from the stream. <p> <p>See also <a href="#setEncoding">setEncoding</a>() and <a href="#codec">codec</a>(). <p>Example: <a href="qwerty-example.html#x402">qwerty/qwerty.cpp</a>. -<h3 class=fn>void <a name="setDevice"></a>TQTextStream::setDevice ( <a href="ntqiodevice.html">TQIODevice</a> * iod ) +<h3 class=fn>void <a name="setDevice"></a>TQTextStream::setDevice ( <a href="tqiodevice.html">TQIODevice</a> * iod ) </h3> Sets the IO device to <em>iod</em>. <p> <p>See also <a href="#device">device</a>() and <a href="#unsetDevice">unsetDevice</a>(). @@ -652,7 +652,7 @@ flags. Writes the <em>len</em> bytes from <em>s</em> to the stream and returns a reference to the stream. <p> Note that no encoding is done by this function. -<p> <p>See also <a href="ntqiodevice.html#writeBlock">TQIODevice::writeBlock</a>(). +<p> <p>See also <a href="tqiodevice.html#writeBlock">TQIODevice::writeBlock</a>(). <!-- eof --> <hr><p> |