diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-06-08 12:56:43 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-06-08 12:56:43 +0900 |
commit | 0cf411b09cf5d8970b873a338a69eae98d5ce5d8 (patch) | |
tree | 107cf55759cc3138bb1e0035b479bcd92127403a /doc/man/man3/tqstring.3qt | |
parent | e6077c30d14e9d662e8843c554db86c0d366d0b6 (diff) | |
download | tqt-0cf411b09cf5d8970b873a338a69eae98d5ce5d8.tar.gz tqt-0cf411b09cf5d8970b873a338a69eae98d5ce5d8.zip |
Rename text nt* related files to equivalent tq*
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'doc/man/man3/tqstring.3qt')
-rw-r--r-- | doc/man/man3/tqstring.3qt | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/doc/man/man3/tqstring.3qt b/doc/man/man3/tqstring.3qt index 596dc4098..59383a654 100644 --- a/doc/man/man3/tqstring.3qt +++ b/doc/man/man3/tqstring.3qt @@ -692,7 +692,7 @@ If only \fIunicode\fR is 0, the string is empty but has \fIlength\fR characters .PP See also isNull() and setLength(). .SH "TQString::TQString ( const char * str )" -Constructs a string that is a deep copy of \fIstr\fR, interpreted as a classic C string. The encoding is assumed to be Latin-1, unless you change it using QTextCodec::setCodecForCStrings(). +Constructs a string that is a deep copy of \fIstr\fR, interpreted as a classic C string. The encoding is assumed to be Latin-1, unless you change it using TQTextCodec::setCodecForCStrings(). .PP If \fIstr\fR is 0, then a null string is created. .PP @@ -897,7 +897,7 @@ This is the same as calling str.arg(\fIa1\fR).arg(\fIa2\fR).arg(\fIa3\fR).arg(\f .SH "const char * TQString::ascii () const" Returns an 8-bit ASCII representation of the string. .PP -If a codec has been set using QTextCodec::codecForCStrings(), it is used to convert Unicode to 8-bit char. Otherwise, this function does the same as latin1(). +If a codec has been set using TQTextCodec::codecForCStrings(), it is used to convert Unicode to 8-bit char. Otherwise, this function does the same as latin1(). .PP See also fromAscii(), latin1(), utf8(), and local8Bit(). .PP @@ -1156,7 +1156,7 @@ See also find(). .SH "TQString TQString::fromAscii ( const char * ascii, int len = -1 )\fC [static]\fR" Returns the Unicode string decoded from the first \fIlen\fR bytes of \fIascii\fR, ignoring the rest of \fIascii\fR. If \fIlen\fR is -1 then the length of \fIascii\fR is used. If \fIlen\fR is bigger than the length of \fIascii\fR then it will use the length of \fIascii\fR. .PP -If a codec has been set using QTextCodec::codecForCStrings(), it is used to convert the string from 8-bit characters to Unicode. Otherwise, this function does the same as fromLatin1(). +If a codec has been set using TQTextCodec::codecForCStrings(), it is used to convert the string from 8-bit characters to Unicode. Otherwise, this function does the same as fromLatin1(). .PP This is the same as the TQString(const char*) constructor, but you can make that constructor invisible if you compile with the define \fCTQT_NO_CAST_ASCII\fR, in which case you can explicitly create a TQString from 8-bit ASCII text using this function. .PP @@ -1187,7 +1187,7 @@ Returns the Unicode string decoded from the first \fIlen\fR bytes of \fIlocal8Bi .PP \fIlocal8Bit\fR is assumed to be encoded in a locale-specific format. .PP -See QTextCodec for more diverse coding/decoding of Unicode strings. +See TQTextCodec for more diverse coding/decoding of Unicode strings. .SH "TQString TQString::fromUcs2 ( const unsigned short * str )\fC [static]\fR" Constructs a string that is a deep copy of \fIstr\fR, interpreted as a UCS2 encoded, zero terminated, Unicode string. .PP @@ -1205,7 +1205,7 @@ Returns the Unicode string decoded from the first \fIlen\fR bytes of \fIutf8\fR, .br .fi .PP -See QTextCodec for more diverse coding/decoding of Unicode strings. +See TQTextCodec for more diverse coding/decoding of Unicode strings. .PP Example: fonts/simple-qfont-demo/viewer.cpp. .SH "TQString & TQString::insert ( uint index, const TQString & s )" @@ -1291,7 +1291,7 @@ See also isEmpty() and length(). Examples: .)l i18n/main.cpp, network/ftpclient/ftpmainwindow.ui.h, and qdir/qdir.cpp. .SH "const char * TQString::latin1 () const" -Returns a Latin-1 representation of the string. The returned value is undefined if the string contains non-Latin-1 characters. If you want to convert strings into formats other than Unicode, see the QTextCodec classes. +Returns a Latin-1 representation of the string. The returned value is undefined if the string contains non-Latin-1 characters. If you want to convert strings into formats other than Unicode, see the TQTextCodec classes. .PP This function is mainly useful for boot-strapping legacy code to use Unicode. .PP @@ -1343,9 +1343,9 @@ See also isNull() and isEmpty(). Examples: .)l dirview/dirview.cpp, fileiconview/qfileiconview.cpp, network/networkprotocol/nntp.cpp, rot13/rot13.cpp, and themes/themes.cpp. .SH "QCString TQString::local8Bit () const" -Returns the string encoded in a locale-specific format. On X11, this is the QTextCodec::codecForLocale(). On Windows, it is a system-defined encoding. On Mac OS X, this always uses UTF-8 as the encoding. +Returns the string encoded in a locale-specific format. On X11, this is the TQTextCodec::codecForLocale(). On Windows, it is a system-defined encoding. On Mac OS X, this always uses UTF-8 as the encoding. .PP -See QTextCodec for more diverse coding/decoding of Unicode strings. +See TQTextCodec for more diverse coding/decoding of Unicode strings. .PP See also fromLocal8Bit(), ascii(), latin1(), and utf8(). .SH "int TQString::localeAwareCompare ( const TQString & s1, const TQString & s2 )\fC [static]\fR" @@ -1353,7 +1353,7 @@ Compares \fIs1\fR with \fIs2\fR and returns an integer less than, equal to, or g .PP The comparison is performed in a locale- and also platform-dependent manner. Use this function to present sorted lists of strings to the user. .PP -See also TQString::compare() and QTextCodec::locale(). +See also TQString::compare() and TQTextCodec::locale(). .SH "int TQString::localeAwareCompare ( const TQString & s ) const" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP @@ -2058,7 +2058,7 @@ See also stripWhiteSpace(). .SH "TQString & TQString::sprintf ( const char * cformat, ... )" Safely builds a formatted string from the format string \fIcformat\fR and an arbitrary list of arguments. The format string supports all the escape sequences of printf() in the standard C library. .PP -The %s escape sequence expects a utf8() encoded string. The format string \fIcformat\fR is expected to be in latin1. If you need a Unicode format string, use arg() instead. For typesafe string building, with full Unicode support, you can use QTextOStream like this: +The %s escape sequence expects a utf8() encoded string. The format string \fIcformat\fR is expected to be in latin1. If you need a Unicode format string, use arg() instead. For typesafe string building, with full Unicode support, you can use TQTextOStream like this: .PP .nf .br @@ -2068,7 +2068,7 @@ The %s escape sequence expects a utf8() encoded string. The format string \fIcfo .br int x = ...; .br - QTextOStream( &str ) << s << " : " << x; + TQTextOStream( &str ) << s << " : " << x; .br .fi .PP @@ -2394,7 +2394,7 @@ Examples: .SH "QCString TQString::utf8 () const" Returns the string encoded in UTF-8 format. .PP -See QTextCodec for more diverse coding/decoding of Unicode strings. +See TQTextCodec for more diverse coding/decoding of Unicode strings. .PP See also fromUtf8(), ascii(), latin1(), and local8Bit(). .PP |