summaryrefslogtreecommitdiffstats
path: root/doc/html/ntqtextcodec.html
diff options
context:
space:
mode:
Diffstat (limited to 'doc/html/ntqtextcodec.html')
-rw-r--r--doc/html/ntqtextcodec.html40
1 files changed, 20 insertions, 20 deletions
diff --git a/doc/html/ntqtextcodec.html b/doc/html/ntqtextcodec.html
index a97812636..0cec4ec27 100644
--- a/doc/html/ntqtextcodec.html
+++ b/doc/html/ntqtextcodec.html
@@ -150,14 +150,14 @@ to do this is:
<p> <pre>
<a href="ntqcstring.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="ntqstring.html">TQString</a> unicodeString = codec-&gt;<a href="#toUnicode">toUnicode</a>( locallyEncoded );
+ <a href="tqstring.html">TQString</a> unicodeString = codec-&gt;<a href="#toUnicode">toUnicode</a>( locallyEncoded );
</pre>
<p> After this, <tt>unicodeString</tt> holds the text converted to Unicode.
Converting a string from Unicode to the local encoding is just as
easy:
<p> <pre>
- <a href="ntqstring.html">TQString</a> unicodeString = "..."; // any Unicode text
+ <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 );
</pre>
@@ -174,7 +174,7 @@ decoding process, as shown below:
TQTextCodec *codec = TQTextCodec::<a href="#codecForName">codecForName</a>( "Shift-JIS" );
<a href="qtextdecoder.html">TQTextDecoder</a> *decoder = codec-&gt;<a href="#makeDecoder">makeDecoder</a>();
- <a href="ntqstring.html">TQString</a> unicodeString;
+ <a href="tqstring.html">TQString</a> unicodeString;
while( receiving_data ) {
<a href="qbytearray.html">TQByteArray</a> chunk = new_data;
unicodeString += decoder-&gt;<a href="qtextdecoder.html#toUnicode">toUnicode</a>( chunk.<a href="ntqmemarray.html#data">data</a>(), chunk.length() );
@@ -223,7 +223,7 @@ Return a <a href="qtextdecoder.html">TQTextDecoder</a> that remembers incomplete
prefixes or other required state.
<p> If the encoding does <em>not</em> require state, you should implement:
<p> <pre>
- <a href="ntqstring.html">TQString</a> toUnicode(const char* chars, int len) const
+ <a href="tqstring.html">TQString</a> toUnicode(const char* chars, int len) const
</pre>
Converts <em>len</em> characters from <em>chars</em> to Unicode.
@@ -239,7 +239,7 @@ are used for encoding:
Return a <a href="qtextencoder.html">TQTextEncoder</a>.
<p> <pre>
- <a href="ntqcstring.html">TQCString</a> fromUnicode(const <a href="ntqstring.html">TQString</a>&amp; uc, int&amp; lenInOut ) const
+ <a href="ntqcstring.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
@@ -266,7 +266,7 @@ re-implement:
Test if a Unicode character can be encoded.
<p> <pre>
- bool canEncode( const <a href="ntqstring.html">TQString</a>&amp; ) const
+ bool canEncode( const <a href="tqstring.html">TQString</a>&amp; ) const
</pre>
Test if a string of Unicode characters can be encoded.
@@ -302,7 +302,7 @@ implementation tests if the result of <a href="#toUnicode">toUnicode</a>(fromUni
is the original <em>ch</em>. Subclasses may be able to improve the
efficiency.
-<h3 class=fn>bool <a name="canEncode-2"></a>TQTextCodec::canEncode ( const&nbsp;<a href="ntqstring.html">TQString</a>&nbsp;&amp;&nbsp;s ) const<tt> [virtual]</tt>
+<h3 class=fn>bool <a name="canEncode-2"></a>TQTextCodec::canEncode ( const&nbsp;<a href="tqstring.html">TQString</a>&nbsp;&amp;&nbsp;s ) const<tt> [virtual]</tt>
</h3>
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
<p> <em>s</em> contains the string being tested for encode-ability.
@@ -310,7 +310,7 @@ This is an overloaded member function, provided for convenience. It behaves esse
<h3 class=fn><a href="ntqtextcodec.html">TQTextCodec</a>&nbsp;* <a name="codecForCStrings"></a>TQTextCodec::codecForCStrings ()<tt> [static]</tt>
</h3>
-<p> Returns the codec used by <a href="ntqstring.html">TQString</a> to convert to and from const
+<p> Returns the codec used by <a href="tqstring.html">TQString</a> to convert to and from const
char* and TQCStrings. If this function returns 0 (the default),
TQString assumes Latin-1.
<p> <p>See also <a href="#setCodecForCStrings">setCodecForCStrings</a>().
@@ -364,12 +364,12 @@ Deletes all the created codecs.
any TQTextCodec objects that may be lying around. Since various
other classes hold pointers to TQTextCodec objects, it is not safe
to call this function earlier.
-<p> If you are using the utility classes (like <a href="ntqstring.html">TQString</a>) but not using
+<p> If you are using the utility classes (like <a href="tqstring.html">TQString</a>) but not using
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="ntqstring.html">TQString</a>&nbsp;&amp;&nbsp;uc, int&nbsp;&amp;&nbsp;lenInOut ) const<tt> [virtual]</tt>
+<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>
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
@@ -383,7 +383,7 @@ hence subclasses <em>must</em> reimplement one function or the other to
avoid infinite recursion.
<p>Reimplemented in <a href="qhebrewcodec.html#fromUnicode">TQHebrewCodec</a>.
-<h3 class=fn><a href="ntqcstring.html">TQCString</a> <a name="fromUnicode-2"></a>TQTextCodec::fromUnicode ( const&nbsp;<a href="ntqstring.html">TQString</a>&nbsp;&amp;&nbsp;uc ) const
+<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>
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.
@@ -438,7 +438,7 @@ tables in code are kept in memory shared by all TQt applications.
<p> <p>See also <a href="#loadCharmapFile">loadCharmapFile</a>().
<p>Example: <a href="qwerty-example.html#x394">qwerty/qwerty.cpp</a>.
-<h3 class=fn><a href="ntqtextcodec.html">TQTextCodec</a>&nbsp;* <a name="loadCharmapFile"></a>TQTextCodec::loadCharmapFile ( <a href="ntqstring.html">TQString</a>&nbsp;filename )<tt> [static]</tt>
+<h3 class=fn><a href="ntqtextcodec.html">TQTextCodec</a>&nbsp;* <a name="loadCharmapFile"></a>TQTextCodec::loadCharmapFile ( <a href="tqstring.html">TQString</a>&nbsp;filename )<tt> [static]</tt>
</h3>
A convenience function for <a href="#loadCharmap">loadCharmap</a>() that loads the charmap
definition from the file <em>filename</em>.
@@ -506,14 +506,14 @@ encodings to the end user.
-<p> Sets the codec used by <a href="ntqstring.html">TQString</a> to convert to and from const char*
+<p> Sets the codec used by <a href="tqstring.html">TQString</a> to convert to and from const char*
and TQCStrings. If <em>c</em> is 0 (the default), TQString assumes Latin-1.
<p> <b>Warning:</b> Some codecs do not preserve the characters in the ascii
range (0x00 to 0x7f). For example, the Japanese Shift-JIS
encoding maps the backslash character (0x5a) to the Yen character.
This leads to unexpected results when using the backslash
character to escape characters in strings used in e.g. regular
-expressions. Use <a href="ntqstring.html#fromLatin1">TQString::fromLatin1</a>() to preserve characters in
+expressions. Use <a href="tqstring.html#fromLatin1">TQString::fromLatin1</a>() to preserve characters in
the ascii range when needed.
<p> <p>See also <a href="#codecForCStrings">codecForCStrings</a>() and <a href="#setCodecForTr">setCodecForTr</a>().
@@ -560,7 +560,7 @@ very minor character-skipping so that almost-exact matches score
high. <em>name</em> is the text we're matching and <em>hint</em> is used for
the comparison.
-<h3 class=fn><a href="ntqstring.html">TQString</a> <a name="toUnicode"></a>TQTextCodec::toUnicode ( const&nbsp;char&nbsp;*&nbsp;chars, int&nbsp;len ) const<tt> [virtual]</tt>
+<h3 class=fn><a href="tqstring.html">TQString</a> <a name="toUnicode"></a>TQTextCodec::toUnicode ( const&nbsp;char&nbsp;*&nbsp;chars, int&nbsp;len ) const<tt> [virtual]</tt>
</h3>
TQTextCodec subclasses must reimplement this function or
<a href="#makeDecoder">makeDecoder</a>(). It converts the first <em>len</em> characters of <em>chars</em>
@@ -571,29 +571,29 @@ 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="ntqstring.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="qbytearray.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="ntqstring.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="qbytearray.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="ntqstring.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="ntqcstring.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="ntqstring.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="ntqcstring.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.
-<h3 class=fn><a href="ntqstring.html">TQString</a> <a name="toUnicode-6"></a>TQTextCodec::toUnicode ( const&nbsp;char&nbsp;*&nbsp;chars ) const
+<h3 class=fn><a href="tqstring.html">TQString</a> <a name="toUnicode-6"></a>TQTextCodec::toUnicode ( const&nbsp;char&nbsp;*&nbsp;chars ) const
</h3>
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
<p> <em>chars</em> contains the source characters.