diff options
Diffstat (limited to 'doc/html/ntqtextstream.html')
-rw-r--r-- | doc/html/ntqtextstream.html | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/doc/html/ntqtextstream.html b/doc/html/ntqtextstream.html index d8d9ed90f..557c33754 100644 --- a/doc/html/ntqtextstream.html +++ b/doc/html/ntqtextstream.html @@ -135,7 +135,7 @@ 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). -<p> By default, output of Unicode text (i.e. <a href="ntqstring.html">TQString</a>) is done using +<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 @@ -173,15 +173,15 @@ Constructs a data stream that has no IO device. </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="ntqstring.html">TQString</a> * str, int filemode ) +<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="ntqstring.html">TQString</a>, <em>str</em>, through an internal device. The <em>filemode</em> argument is +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>(). <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="ntqstring.html">TQString</a> str; + <a href="tqstring.html">TQString</a> str; TQTextStream ts( &str, <a href="ntqfile.html#open">IO_WriteOnly</a> ); ts << "pi = " << 3.14; // str == "pi = 3.14" </pre> @@ -190,7 +190,7 @@ this setting is ignored for text streams that operate on TQString. string. The string will be expanded when data is written beyond the end of the string. Note that the string will not be truncated: <pre> - <a href="ntqstring.html">TQString</a> str = "pi = 3.14"; + <a href="tqstring.html">TQString</a> str = "pi = 3.14"; TQTextStream ts( &str, IO_WriteOnly ); ts << "2+2 = " << 2+2; // str == "2+2 = 414" </pre> @@ -198,9 +198,9 @@ the end of the string. Note that the string will not be truncated: <p> Note that because TQString is Unicode, you should not use <a href="#readRawBytes">readRawBytes</a>() or <a href="#writeRawBytes">writeRawBytes</a>() on such a stream. -<h3 class=fn><a name="TQTextStream-4"></a>TQTextStream::TQTextStream ( <a href="ntqstring.html">TQString</a> & str, int filemode ) +<h3 class=fn><a name="TQTextStream-4"></a>TQTextStream::TQTextStream ( <a href="tqstring.html">TQString</a> & str, int filemode ) </h3> <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 constructor is equivalent to the constructor taking a <a href="ntqstring.html">TQString</a>* +<p> This constructor is equivalent to the constructor taking a <a href="tqstring.html">TQString</a>* parameter. <h3 class=fn><a name="TQTextStream-5"></a>TQTextStream::TQTextStream ( <a href="qbytearray.html">TQByteArray</a> a, int mode ) @@ -388,7 +388,7 @@ stream. <p> The string <em>s</em> is assumed to be Latin1 encoded independent of the Encoding set for the TQTextStream. -<h3 class=fn><a href="ntqtextstream.html">TQTextStream</a> & <a name="operator-lt-lt-c"></a>TQTextStream::operator<< ( const <a href="ntqstring.html">TQString</a> & s ) +<h3 class=fn><a href="ntqtextstream.html">TQTextStream</a> & <a name="operator-lt-lt-c"></a>TQTextStream::operator<< ( const <a href="tqstring.html">TQString</a> & s ) </h3> This is an overloaded member function, provided for convenience. It behaves essentially like the above function. <p> Writes <em>s</em> to the stream and returns a reference to the stream. @@ -481,7 +481,7 @@ This is an overloaded member function, provided for convenience. It behaves esse to the stream. <p> A word consists of characters for which isspace() returns FALSE. -<h3 class=fn><a href="ntqtextstream.html">TQTextStream</a> & <a name="operator-gt-gt-c"></a>TQTextStream::operator>> ( <a href="ntqstring.html">TQString</a> & str ) +<h3 class=fn><a href="ntqtextstream.html">TQTextStream</a> & <a name="operator-gt-gt-c"></a>TQTextStream::operator>> ( <a href="tqstring.html">TQString</a> & str ) </h3> This is an overloaded member function, provided for convenience. It behaves essentially like the above function. <p> Reads a "word" from the stream into <em>str</em> and returns a reference @@ -506,14 +506,14 @@ to the stream. <p> This is an overloaded member function, provided for convenience. It behaves essentially like the above function. <p> Sets the precision to <em>p</em>. Returns the previous precision setting. -<h3 class=fn><a href="ntqstring.html">TQString</a> <a name="read"></a>TQTextStream::read () +<h3 class=fn><a href="tqstring.html">TQString</a> <a name="read"></a>TQTextStream::read () </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>Examples: <a href="qaction-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>. -<h3 class=fn><a href="ntqstring.html">TQString</a> <a name="readLine"></a>TQTextStream::readLine () +<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. @@ -521,7 +521,7 @@ text. 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 of the line. -<p> On EOF you will get a <a href="ntqstring.html">TQString</a> that is null. On reading an empty +<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>(). @@ -573,7 +573,7 @@ autodetecting Unicode(utf16) on input. <tr bgcolor="#d0d0d0"> <td valign="top">Unicode <td valign="top">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 <a href="ntqstring.html">TQString</a>). +(i.e. the order used internally in <a href="tqstring.html">TQString</a>). <tr bgcolor="#f0f0f0"> <td valign="top">UnicodeUTF8 <td valign="top">Using Unicode(utf8) for input and output. If you use it for input it will autodetect utf16 and use it instead of utf8. |