![]() |
Home · All Classes · Main Classes · Annotated · Grouped Classes · Functions | ![]() |
The following class members are part of the Qt 3 support layer. They are provided to help you port old code to Qt 4. We advise against using them in new code.
Returns an 8-bit ASCII representation of the string as a const char *.
If a codec has been set using QTextCodec::setCodecForCStrings(), it is used to convert Unicode to 8-bit char; otherwise this function does the same as latin1().
The result remains valid as long as one unmodified copy of the source string exists and no other 8-bit representations of the same string are requested.
See also fromAscii(), latin1(), utf8(), local8Bit(), and QTextCodec.
Use at() instead.
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
Use the contains(QChar, Qt::CaseSensitive) overload instead.
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
Use the contains(QString, Qt::CaseSensitive) overload instead.
Use simple assignment instead. QString is implicitly shared so if a copy is modified only the copy is changed.
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
Use the endsWith(QString, Qt::CaseSensitive) overload instead.
Use indexOf() instead.
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
Use indexOf() instead.
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
Use indexOf() instead.
Use lastIndexOf() instead.
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
Use lastIndexOf() instead.
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
Use lastIndexOf() instead.
Use fromUtf16() instead.
Returns a Latin-1 representation of the string as a const char *. The returned string is undefined if the string contains non-Latin1 characters.
The result remains valid as long as one unmodified copy of the source string exists and no other 8-bit representations of the same string are requested.
See also fromLatin1(), ascii(), utf8(), local8Bit(), and QTextCodec.
Use leftJustified() instead.
Returns the local 8-bit representation of the string as a const char *. The returned string is undefined if the string contains characters not supported by the local 8-bit encoding.
QTextCodec::codecForLocale() is used to perform the conversion from Unicode.
The result remains valid as long as one unmodified copy of the source string exists and no other 8-bit representations of the same string are requested.
See also fromLocal8Bit(), ascii(), latin1(), utf8(), and QTextCodec.
Use toLower() instead.
###
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
Use the remove(QChar, Qt::CaseSensitive) overload instead.
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
Use the remove(QString, Qt::CaseSensitive) overload instead.
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
Use the replace(QChar, QString, Qt::CaseSensitive) overload instead.
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
Use the replace(QString, QString, Qt::CaseSensitive) overload instead.
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
Use the replace(QChar, QString, Qt::CaseSensitive) overload instead.
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
Use the replace(QChar, QString, Qt::CaseSensitive) overload instead.
Use rightJustified() instead.
Use fromAscii() instead.
Use fromLatin1() instead.
Use resize() instead.
Use setUtf16() instead.
Use simplified() instead.
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
Use the startsWith(QString, Qt::CaseSensitive) overload instead.
Use trimmed() instead.
Use utf16() instead.
Use toUpper() instead.
Returns a UTF-8 representation of the string as a const char *.
The result remains valid as long as one unmodified copy of the source string exists and no other 8-bit representations of the same string are requested.
See also fromUtf8(), ascii(), latin1(), local8Bit(), and QTextCodec.
Returns an 8-bit ASCII representation of the string as a const char *.
This operator performs the same as ascii(), except that it is invoked automatically when a QString is used in place of a const char *.
If the QString contains non-ASCII Unicode characters, using this operator can lead to loss of information. You can disable this operator by defining QT_NO_CAST_TO_ASCII when you compile your applications. You then need to call ascii() (or latin1() or utf8() or local8Bit()) explicitly if you want to convert the data to const char *.
See also ascii(), latin1(), utf8(), and local8Bit().
Copyright © 2005 Trolltech | Trademarks | Qt 4.0.0-b2 |