From 87d29563e3ccdeb7fea0197e262e667ef323ff9c Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sun, 7 Jul 2024 14:56:09 +0900 Subject: Rename utility class nt* related files to equivalent tq* Signed-off-by: Michele Calgaro --- doc/html/tqtextcodec.html | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'doc/html/tqtextcodec.html') 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:

-    TQCString locallyEncoded = "..."; // text to convert
+    TQCString locallyEncoded = "..."; // text to convert
     TQTextCodec *codec = TQTextCodec::codecForName("KOI8-R"); // get the codec for KOI8-R
     TQString unicodeString = codec->toUnicode( locallyEncoded );
     
@@ -159,7 +159,7 @@ easy:

     TQString unicodeString = "..."; // any Unicode text
     TQTextCodec *codec = TQTextCodec::codecForName("KOI8-R"); // get the codec for KOI8-R
-    TQCString locallyEncoded = codec->fromUnicode( unicodeString );
+    TQCString locallyEncoded = codec->fromUnicode( unicodeString );
     

Some care must be taken when trying to convert the data in chunks, @@ -176,8 +176,8 @@ decoding process, as shown below: TQString unicodeString; while( receiving_data ) { - TQByteArray chunk = new_data; - unicodeString += decoder->toUnicode( chunk.data(), chunk.length() ); + TQByteArray chunk = new_data; + unicodeString += decoder->toUnicode( chunk.data(), chunk.length() ); } @@ -239,12 +239,12 @@ are used for encoding: Return a TQTextEncoder.

-    TQCString fromUnicode(const TQString& uc, int& lenInOut ) const
+    TQCString fromUnicode(const TQString& uc, int& lenInOut ) const
     
Converts lenInOut characters (of type TQChar) from the start of -the string uc, returning a TQCString result, and also returning -the length of the result in +the string uc, returning a TQCString result, and also returning +the length of the result in lenInOut.

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. -

TQCString TQTextCodec::fromUnicode ( const TQString & uc, int & lenInOut ) const [virtual] +

TQCString TQTextCodec::fromUnicode ( const TQString & uc, int & lenInOut ) const [virtual]

TQTextCodec subclasses must reimplement either this function or makeEncoder(). It converts the first lenInOut characters of uc from Unicode to the encoding of the subclass. If lenInOut is negative or too large, the length of uc is used instead.

Converts lenInOut characters (not bytes) from uc, producing -a TQCString. lenInOut will be set to the length of the result (in bytes). +a TQCString. lenInOut will be set to the length of the result (in bytes).

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 must reimplement one function or the other to avoid infinite recursion.

Reimplemented in TQHebrewCodec. -

TQCString TQTextCodec::fromUnicode ( const TQString & uc ) const +

TQCString TQTextCodec::fromUnicode ( const TQString & uc ) const

This is an overloaded member function, provided for convenience. It behaves essentially like the above function.

uc is the unicode source string. @@ -571,24 +571,24 @@ implementation makes a decoder that simply calls this function, hence subclasses must reimplement one function or the other to avoid infinite recursion. -

TQString TQTextCodec::toUnicode ( const TQByteArray & a, int len ) const +

TQString TQTextCodec::toUnicode ( const TQByteArray & a, int len ) const

This is an overloaded member function, provided for convenience. It behaves essentially like the above function.

a contains the source characters; len contains the number of characters in a to use. -

TQString TQTextCodec::toUnicode ( const TQByteArray & a ) const +

TQString TQTextCodec::toUnicode ( const TQByteArray & a ) const

This is an overloaded member function, provided for convenience. It behaves essentially like the above function.

a contains the source characters. -

TQString TQTextCodec::toUnicode ( const TQCString & a, int len ) const +

TQString TQTextCodec::toUnicode ( const TQCString & a, int len ) const

This is an overloaded member function, provided for convenience. It behaves essentially like the above function.

a contains the source characters; len contains the number of characters in a to use. -

TQString TQTextCodec::toUnicode ( const TQCString & a ) const +

TQString TQTextCodec::toUnicode ( const TQCString & a ) const

This is an overloaded member function, provided for convenience. It behaves essentially like the above function.

a contains the source characters. -- cgit v1.2.3