diff options
Diffstat (limited to 'doc/man/man3/tqstring.3qt')
-rw-r--r-- | doc/man/man3/tqstring.3qt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/man/man3/tqstring.3qt b/doc/man/man3/tqstring.3qt index 7097b922c..074d0d3c8 100644 --- a/doc/man/man3/tqstring.3qt +++ b/doc/man/man3/tqstring.3qt @@ -696,7 +696,7 @@ Constructs a string that is a deep copy of \fIstr\fR, interpreted as a classic C .PP If \fIstr\fR is 0, then a null string is created. .PP -This is a cast constructor, but it is perfectly safe: converting a Latin-1 \fCconst char *\fR to QString preserves all the information. You can disable this constructor by defining \fCQT_NO_CAST_ASCII\fR when you compile your applications. You can also make QString objects by using setLatin1(), fromLatin1(), fromLocal8Bit(), and fromUtf8(). Or whatever encoding is appropriate for the 8-bit data you have. +This is a cast constructor, but it is perfectly safe: converting a Latin-1 \fCconst char *\fR to QString preserves all the information. You can disable this constructor by defining \fCTQT_NO_CAST_ASCII\fR when you compile your applications. You can also make QString objects by using setLatin1(), fromLatin1(), fromLocal8Bit(), and fromUtf8(). Or whatever encoding is appropriate for the 8-bit data you have. .PP See also isNull() and fromAscii(). .SH "QString::QString ( const std::string & str )" @@ -1158,7 +1158,7 @@ Returns the Unicode string decoded from the first \fIlen\fR bytes 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(). .PP -This is the same as the QString(const char*) constructor, but you can make that constructor invisible if you compile with the define \fCQT_NO_CAST_ASCII\fR, in which case you can explicitly create a QString from 8-bit ASCII text using this function. +This is the same as the QString(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 QString from 8-bit ASCII text using this function. .PP .nf .br |