summaryrefslogtreecommitdiffstats
path: root/doc/man/man3/tqtextcodec.3qt
diff options
context:
space:
mode:
Diffstat (limited to 'doc/man/man3/tqtextcodec.3qt')
-rw-r--r--doc/man/man3/tqtextcodec.3qt40
1 files changed, 20 insertions, 20 deletions
diff --git a/doc/man/man3/tqtextcodec.3qt b/doc/man/man3/tqtextcodec.3qt
index 007038e0f..ff7036b22 100644
--- a/doc/man/man3/tqtextcodec.3qt
+++ b/doc/man/man3/tqtextcodec.3qt
@@ -39,22 +39,22 @@ Inherited by TQBig5Codec, TQBig5hkscsCodec, TQEucJpCodec, TQEucKrCodec, TQGb1803
.BI "virtual TQString \fBtoUnicode\fR ( const char * chars, int len ) const"
.br
.ti -1c
-.BI "virtual QCString \fBfromUnicode\fR ( const TQString & uc, int & lenInOut ) const"
+.BI "virtual TQCString \fBfromUnicode\fR ( const TQString & uc, int & lenInOut ) const"
.br
.ti -1c
-.BI "QCString \fBfromUnicode\fR ( const TQString & uc ) const"
+.BI "TQCString \fBfromUnicode\fR ( const TQString & uc ) const"
.br
.ti -1c
-.BI "TQString \fBtoUnicode\fR ( const QByteArray & a, int len ) const"
+.BI "TQString \fBtoUnicode\fR ( const TQByteArray & a, int len ) const"
.br
.ti -1c
-.BI "TQString \fBtoUnicode\fR ( const QByteArray & a ) const"
+.BI "TQString \fBtoUnicode\fR ( const TQByteArray & a ) const"
.br
.ti -1c
-.BI "TQString \fBtoUnicode\fR ( const QCString & a, int len ) const"
+.BI "TQString \fBtoUnicode\fR ( const TQCString & a, int len ) const"
.br
.ti -1c
-.BI "TQString \fBtoUnicode\fR ( const QCString & a ) const"
+.BI "TQString \fBtoUnicode\fR ( const TQCString & a ) const"
.br
.ti -1c
.BI "TQString \fBtoUnicode\fR ( const char * chars ) const"
@@ -228,7 +228,7 @@ TQTextCodecs can be used as follows to convert some locally encoded string to Un
.PP
.nf
.br
- QCString locallyEncoded = "..."; // text to convert
+ TQCString locallyEncoded = "..."; // text to convert
.br
TQTextCodec *codec = TQTextCodec::codecForName("KOI8-R"); // get the codec for KOI8-R
.br
@@ -244,7 +244,7 @@ After this, \fCunicodeString\fR holds the text converted to Unicode. Converting
.br
TQTextCodec *codec = TQTextCodec::codecForName("KOI8-R"); // get the codec for KOI8-R
.br
- QCString locallyEncoded = codec->fromUnicode( unicodeString );
+ TQCString locallyEncoded = codec->fromUnicode( unicodeString );
.br
.fi
.PP
@@ -263,7 +263,7 @@ The approach to use in these situations is to create a TQTextDecoder object for
.br
while( receiving_data ) {
.br
- QByteArray chunk = new_data;
+ TQByteArray chunk = new_data;
.br
unicodeString += decoder->toUnicode( chunk.data(), chunk.length() );
.br
@@ -328,10 +328,10 @@ Return a TQTextEncoder.
.PP
.nf
.br
- QCString fromUnicode(const TQString& uc, int& lenInOut ) const
+ TQCString fromUnicode(const TQString& uc, int& lenInOut ) const
.br
.fi
-Converts \fIlenInOut\fR characters (of type TQChar) from the start of the string \fIuc\fR, returning a QCString result, and also returning the length of the result in \fIlenInOut\fR.
+Converts \fIlenInOut\fR characters (of type TQChar) from the start of the string \fIuc\fR, returning a TQCString result, and also returning the length of the result in \fIlenInOut\fR.
.PP
Again, these are mutually recursive so only one needs to be implemented, or both if greater efficiency is possible.
.PP
@@ -388,7 +388,7 @@ This is an overloaded member function, provided for convenience. It behaves esse
.PP
\fIs\fR contains the string being tested for encode-ability.
.SH "TQTextCodec * TQTextCodec::codecForCStrings ()\fC [static]\fR"
-Returns the codec used by TQString to convert to and from const char* and QCStrings. If this function returns 0 (the default), TQString assumes Latin-1.
+Returns the codec used by TQString to convert to and from const char* and TQCStrings. If this function returns 0 (the default), TQString assumes Latin-1.
.PP
See also setCodecForCStrings().
.SH "TQTextCodec * TQTextCodec::codecForContent ( const char * chars, int len )\fC [static]\fR"
@@ -427,15 +427,15 @@ Deletes all the created codecs.
QApplication calls this function just before exiting to delete 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.
.PP
If you are using the utility classes (like TQString) but not using QApplication, calling this function at the very end of your application may be helpful for chasing down memory leaks by eliminating any TQTextCodec objects.
-.SH "QCString TQTextCodec::fromUnicode ( const TQString & uc, int & lenInOut ) const\fC [virtual]\fR"
+.SH "TQCString TQTextCodec::fromUnicode ( const TQString & uc, int & lenInOut ) const\fC [virtual]\fR"
TQTextCodec subclasses must reimplement either this function or makeEncoder(). It converts the first \fIlenInOut\fR characters of \fIuc\fR from Unicode to the encoding of the subclass. If \fIlenInOut\fR is negative or too large, the length of \fIuc\fR is used instead.
.PP
-Converts \fIlenInOut\fR characters (not bytes) from \fIuc\fR, producing a QCString. \fIlenInOut\fR will be set to the length of the result (in bytes).
+Converts \fIlenInOut\fR characters (not bytes) from \fIuc\fR, producing a TQCString. \fIlenInOut\fR will be set to the length of the result (in bytes).
.PP
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, hence subclasses \fImust\fR reimplement one function or the other to avoid infinite recursion.
.PP
Reimplemented in TQHebrewCodec.
-.SH "QCString TQTextCodec::fromUnicode ( const TQString & uc ) const"
+.SH "TQCString TQTextCodec::fromUnicode ( const TQString & uc ) const"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
\fIuc\fR is the unicode source string.
@@ -496,7 +496,7 @@ Example: qwerty/qwerty.cpp.
.SH "void TQTextCodec::setCodecForCStrings ( TQTextCodec * c )\fC [static]\fR"
\fBWarning:\fR This function is \fInot\fR reentrant.</p>
.PP
-Sets the codec used by TQString to convert to and from const char* and QCStrings. If \fIc\fR is 0 (the default), TQString assumes Latin-1.
+Sets the codec used by TQString to convert to and from const char* and TQCStrings. If \fIc\fR is 0 (the default), TQString assumes Latin-1.
.PP
\fBWarning:\fR 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 TQString::fromLatin1() to preserve characters in the ascii range when needed.
.PP
@@ -539,19 +539,19 @@ A simple utility function for heuristicNameMatch(): it does some very minor char
TQTextCodec subclasses must reimplement this function or makeDecoder(). It converts the first \fIlen\fR characters of \fIchars\fR to Unicode.
.PP
The default implementation makes a decoder with makeDecoder() and converts the input with that. Note that the default makeDecoder() implementation makes a decoder that simply calls this function, hence subclasses \fImust\fR reimplement one function or the other to avoid infinite recursion.
-.SH "TQString TQTextCodec::toUnicode ( const QByteArray & a, int len ) const"
+.SH "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.
.PP
\fIa\fR contains the source characters; \fIlen\fR contains the number of characters in \fIa\fR to use.
-.SH "TQString TQTextCodec::toUnicode ( const QByteArray & a ) const"
+.SH "TQString TQTextCodec::toUnicode ( const TQByteArray & a ) const"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
\fIa\fR contains the source characters.
-.SH "TQString TQTextCodec::toUnicode ( const QCString & a, int len ) const"
+.SH "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.
.PP
\fIa\fR contains the source characters; \fIlen\fR contains the number of characters in \fIa\fR to use.
-.SH "TQString TQTextCodec::toUnicode ( const QCString & a ) const"
+.SH "TQString TQTextCodec::toUnicode ( const TQCString & a ) const"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
\fIa\fR contains the source characters.