summaryrefslogtreecommitdiffstats
path: root/doc/html/tqtextcodec.html
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2024-07-07 14:56:09 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-07-07 14:56:09 +0900
commit87d29563e3ccdeb7fea0197e262e667ef323ff9c (patch)
tree2d674f204c5205ca577a782e1b50583afd563972 /doc/html/tqtextcodec.html
parent628b0bb74c3fc327efff8add9c73ada04b1cbea2 (diff)
downloadtqt3-87d29563e3ccdeb7fea0197e262e667ef323ff9c.tar.gz
tqt3-87d29563e3ccdeb7fea0197e262e667ef323ff9c.zip
Rename utility class nt* related files to equivalent tq*
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'doc/html/tqtextcodec.html')
-rw-r--r--doc/html/tqtextcodec.html28
1 files changed, 14 insertions, 14 deletions
diff --git a/doc/html/tqtextcodec.html b/doc/html/tqtextcodec.html
index ecd9d26d3..1e9c39d6f 100644
--- a/doc/html/tqtextcodec.html
+++ b/doc/html/tqtextcodec.html
@@ -148,7 +148,7 @@ string to Unicode. Suppose you have some string encoded in Russian
KOI8-R encoding, and want to convert it to Unicode. The simple way
to do this is:
<p> <pre>
- <a href="ntqcstring.html">TQCString</a> locallyEncoded = "..."; // text to convert
+ <a href="tqcstring.html">TQCString</a> locallyEncoded = "..."; // text to convert
TQTextCodec *codec = TQTextCodec::<a href="#codecForName">codecForName</a>("KOI8-R"); // get the codec for KOI8-R
<a href="tqstring.html">TQString</a> unicodeString = codec-&gt;<a href="#toUnicode">toUnicode</a>( locallyEncoded );
</pre>
@@ -159,7 +159,7 @@ easy:
<p> <pre>
<a href="tqstring.html">TQString</a> unicodeString = "..."; // any Unicode text
TQTextCodec *codec = TQTextCodec::<a href="#codecForName">codecForName</a>("KOI8-R"); // get the codec for KOI8-R
- <a href="ntqcstring.html">TQCString</a> locallyEncoded = codec-&gt;<a href="#fromUnicode">fromUnicode</a>( unicodeString );
+ <a href="tqcstring.html">TQCString</a> locallyEncoded = codec-&gt;<a href="#fromUnicode">fromUnicode</a>( unicodeString );
</pre>
<p> Some care must be taken when trying to convert the data in chunks,
@@ -176,8 +176,8 @@ decoding process, as shown below:
<a href="tqstring.html">TQString</a> unicodeString;
while( receiving_data ) {
- <a href="qbytearray.html">TQByteArray</a> chunk = new_data;
- unicodeString += decoder-&gt;<a href="tqtextdecoder.html#toUnicode">toUnicode</a>( chunk.<a href="ntqmemarray.html#data">data</a>(), chunk.length() );
+ <a href="tqbytearray.html">TQByteArray</a> chunk = new_data;
+ unicodeString += decoder-&gt;<a href="tqtextdecoder.html#toUnicode">toUnicode</a>( chunk.<a href="tqmemarray.html#data">data</a>(), chunk.length() );
}
</pre>
@@ -239,12 +239,12 @@ are used for encoding:
Return a <a href="tqtextencoder.html">TQTextEncoder</a>.
<p> <pre>
- <a href="ntqcstring.html">TQCString</a> fromUnicode(const <a href="tqstring.html">TQString</a>&amp; uc, int&amp; lenInOut ) const
+ <a href="tqcstring.html">TQCString</a> fromUnicode(const <a href="tqstring.html">TQString</a>&amp; uc, int&amp; lenInOut ) const
</pre>
Converts <em>lenInOut</em> characters (of type <a href="qchar.html">TQChar</a>) from the start of
-the string <em>uc</em>, returning a <a href="ntqcstring.html">TQCString</a> result, and also returning
-the <a href="ntqcstring.html#length">length</a> of the result in
+the string <em>uc</em>, returning a <a href="tqcstring.html">TQCString</a> result, and also returning
+the <a href="tqcstring.html#length">length</a> of the result in
<em>lenInOut</em>.
<p> Again, these are mutually recursive so only one needs to be implemented,
or both if greater efficiency is possible.
@@ -369,13 +369,13 @@ TQApplication, calling this function at the very end of your
application may be helpful for chasing down memory leaks by
eliminating any TQTextCodec objects.
-<h3 class=fn><a href="ntqcstring.html">TQCString</a> <a name="fromUnicode"></a>TQTextCodec::fromUnicode ( const&nbsp;<a href="tqstring.html">TQString</a>&nbsp;&amp;&nbsp;uc, int&nbsp;&amp;&nbsp;lenInOut ) const<tt> [virtual]</tt>
+<h3 class=fn><a href="tqcstring.html">TQCString</a> <a name="fromUnicode"></a>TQTextCodec::fromUnicode ( const&nbsp;<a href="tqstring.html">TQString</a>&nbsp;&amp;&nbsp;uc, int&nbsp;&amp;&nbsp;lenInOut ) const<tt> [virtual]</tt>
</h3>
TQTextCodec subclasses must reimplement either this function or
<a href="#makeEncoder">makeEncoder</a>(). It converts the first <em>lenInOut</em> characters of <em>uc</em> from Unicode to the encoding of the subclass. If <em>lenInOut</em> is
negative or too large, the length of <em>uc</em> is used instead.
<p> Converts <em>lenInOut</em> characters (not bytes) from <em>uc</em>, producing
-a <a href="ntqcstring.html">TQCString</a>. <em>lenInOut</em> will be set to the <a href="ntqcstring.html#length">length</a> of the result (in bytes).
+a <a href="tqcstring.html">TQCString</a>. <em>lenInOut</em> will be set to the <a href="tqcstring.html#length">length</a> of the result (in bytes).
<p> The default implementation makes an encoder with makeEncoder() and
converts the input with that. Note that the default makeEncoder()
implementation makes an encoder that simply calls this function,
@@ -383,7 +383,7 @@ hence subclasses <em>must</em> reimplement one function or the other to
avoid infinite recursion.
<p>Reimplemented in <a href="tqhebrewcodec.html#fromUnicode">TQHebrewCodec</a>.
-<h3 class=fn><a href="ntqcstring.html">TQCString</a> <a name="fromUnicode-2"></a>TQTextCodec::fromUnicode ( const&nbsp;<a href="tqstring.html">TQString</a>&nbsp;&amp;&nbsp;uc ) const
+<h3 class=fn><a href="tqcstring.html">TQCString</a> <a name="fromUnicode-2"></a>TQTextCodec::fromUnicode ( const&nbsp;<a href="tqstring.html">TQString</a>&nbsp;&amp;&nbsp;uc ) const
</h3>
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
<p> <em>uc</em> is the unicode source string.
@@ -571,24 +571,24 @@ implementation makes a decoder that simply calls
this function, hence subclasses <em>must</em> reimplement one function or
the other to avoid infinite recursion.
-<h3 class=fn><a href="tqstring.html">TQString</a> <a name="toUnicode-2"></a>TQTextCodec::toUnicode ( const&nbsp;<a href="qbytearray.html">TQByteArray</a>&nbsp;&amp;&nbsp;a, int&nbsp;len ) const
+<h3 class=fn><a href="tqstring.html">TQString</a> <a name="toUnicode-2"></a>TQTextCodec::toUnicode ( const&nbsp;<a href="tqbytearray.html">TQByteArray</a>&nbsp;&amp;&nbsp;a, int&nbsp;len ) const
</h3>
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
<p> <em>a</em> contains the source characters; <em>len</em> contains the number of
characters in <em>a</em> to use.
-<h3 class=fn><a href="tqstring.html">TQString</a> <a name="toUnicode-3"></a>TQTextCodec::toUnicode ( const&nbsp;<a href="qbytearray.html">TQByteArray</a>&nbsp;&amp;&nbsp;a ) const
+<h3 class=fn><a href="tqstring.html">TQString</a> <a name="toUnicode-3"></a>TQTextCodec::toUnicode ( const&nbsp;<a href="tqbytearray.html">TQByteArray</a>&nbsp;&amp;&nbsp;a ) const
</h3>
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
<p> <em>a</em> contains the source characters.
-<h3 class=fn><a href="tqstring.html">TQString</a> <a name="toUnicode-4"></a>TQTextCodec::toUnicode ( const&nbsp;<a href="ntqcstring.html">TQCString</a>&nbsp;&amp;&nbsp;a, int&nbsp;len ) const
+<h3 class=fn><a href="tqstring.html">TQString</a> <a name="toUnicode-4"></a>TQTextCodec::toUnicode ( const&nbsp;<a href="tqcstring.html">TQCString</a>&nbsp;&amp;&nbsp;a, int&nbsp;len ) const
</h3>
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
<p> <em>a</em> contains the source characters; <em>len</em> contains the number of
characters in <em>a</em> to use.
-<h3 class=fn><a href="tqstring.html">TQString</a> <a name="toUnicode-5"></a>TQTextCodec::toUnicode ( const&nbsp;<a href="ntqcstring.html">TQCString</a>&nbsp;&amp;&nbsp;a ) const
+<h3 class=fn><a href="tqstring.html">TQString</a> <a name="toUnicode-5"></a>TQTextCodec::toUnicode ( const&nbsp;<a href="tqcstring.html">TQCString</a>&nbsp;&amp;&nbsp;a ) const
</h3>
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
<p> <em>a</em> contains the source characters.