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.
const char * | ascii () const |
QChar | constref ( uint i ) const |
bool | contains ( QChar c, bool cs ) const |
bool | contains ( const QString & s, bool cs ) const |
QString | copy () const |
bool | endsWith ( const QString & s, bool cs ) const |
int | find ( QChar c, int i = 0, bool cs = true ) const |
int | find ( const QString & s, int i = 0, bool cs = true ) const |
int | find ( const QRegExp & rx, int i = 0 ) const |
int | findRev ( QChar c, int i = -1, bool cs = true ) const |
int | findRev ( const QString & s, int i = -1, bool cs = true ) const |
int | findRev ( const QRegExp & rx, int i = -1 ) const |
const char * | latin1 () const |
QString | leftJustify ( int width, QChar fill = QLatin1Char( ' ' ), bool trunc = false ) const |
QByteArray | local8Bit () const |
QString | lower () const |
QChar & | ref ( uint i ) |
QString & | remove ( QChar c, bool cs ) |
QString & | remove ( const QString & s, bool cs ) |
QString & | replace ( QChar c, const QString & after, bool cs ) |
QString & | replace ( const QString & before, const QString & after, bool cs ) |
QString & | replace ( char c, const QString & after, bool cs ) |
QString & | replace ( char c, const QString & after, Qt::CaseSensitivity cs ) |
QString | rightJustify ( int width, QChar fill = QLatin1Char( ' ' ), bool trunc = false ) const |
QString & | setAscii ( const char * str, int len = -1 ) |
QString & | setLatin1 ( const char * str, int len = -1 ) |
void | setLength ( int nl ) |
QString & | setUnicodeCodes ( const ushort * unicode_as_ushorts, int size ) |
QString | simplifyWhiteSpace () const |
bool | startsWith ( const QString & s, bool cs ) const |
QString | stripWhiteSpace () const |
const ushort * | ucs2 () const |
QString | upper () const |
QByteArray | utf8 () const |
operator const char * () const |
QString | fromUcs2 ( const ushort * unicode, int size = -1 ) |
Use toAscii() instead.
Warning: This function is not reentrant.
See also setAscii().
Use at() instead.
Use the contains(QChar, Qt::CaseSensitive) overload instead.
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.
Use the endsWith(QString, Qt::CaseSensitive) overload instead.
Use indexOf() instead.
Use indexOf() instead.
Use indexOf() instead.
Use lastIndexOf() instead.
Use lastIndexOf() instead.
Use lastIndexOf() instead.
Use fromUtf16() instead.
Use toLatin1() instead.
Warning: This function is not reentrant.
See also setLatin1().
Use leftJustified() instead.
Use toLocal8Bit() instead.
Warning: This function is not reentrant.
Use toLower() instead.
Use operator[]() instead.
Use the remove(QChar, Qt::CaseSensitive) overload instead.
Use the remove(QString, Qt::CaseSensitive) overload instead.
Use the replace(QChar, QString, Qt::CaseSensitive) overload instead.
Use the replace(QString, QString, Qt::CaseSensitive) overload instead.
Use the replace(QChar, QString, Qt::CaseSensitive) overload instead.
Use the replace(QChar, QString, Qt::CaseSensitive) overload instead.
Use rightJustified() instead.
Use fromAscii() instead.
See also ascii().
Use fromLatin1() instead.
See also latin1().
Use resize() instead.
See also length().
Use setUtf16() instead.
Use simplified() instead.
Use the startsWith(QString, Qt::CaseSensitive) overload instead.
Use trimmed() instead.
Use utf16() instead.
Use toUpper() instead.
Use toUtf8() instead.
Warning: This function is not reentrant.
© 2008-2011 Nokia Corporation and/or its subsidiaries. Nokia, Qt and their respective logos are trademarks of Nokia Corporation in Finland and/or other countries worldwide.
All other trademarks are property of their respective owners. Privacy Policy
Licensees holding valid Qt Commercial licenses may use this document in accordance with the Qt Commercial License Agreement provided with the Software or, alternatively, in accordance with the terms contained in a written agreement between you and Nokia.
Alternatively, this document may be used under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation.