以下成员源于类 QString are part of the Qt compatibility layer. 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) |
使用 toAscii () 代替。
警告: 此函数不 可重入 .
另请参阅 setAscii ().
使用 at () 代替。
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.
使用 endsWith ( QString , Qt::CaseSensitive ) overload instead.
使用 indexOf () 代替。
使用 indexOf () 代替。
使用 indexOf () 代替。
使用 lastIndexOf () 代替。
使用 lastIndexOf () 代替。
使用 lastIndexOf () 代替。
[static]
QString
QString::
fromUcs2
(const
ushort
*
unicode
,
int
size
= -1)
使用 fromUtf16 () 代替。
使用 toLatin1 () 代替。
警告: 此函数不 可重入 .
另请参阅 setLatin1 ().
使用 leftJustified () 代替。
使用 toLocal8Bit () 代替。
警告: 此函数不 可重入 .
使用 toLower () 代替。
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.
使用 rightJustified () 代替。
使用 fromAscii () 代替。
另请参阅 ascii ().
使用 fromLatin1 () 代替。
另请参阅 latin1 ().
使用 resize () 代替。
另请参阅 length ().
使用 setUtf16 () 代替。
使用 simplified () 代替。
使用 startsWith ( QString , Qt::CaseSensitive ) overload instead.
使用 trimmed () 代替。
使用 utf16 () 代替。
使用 toUpper () 代替。
使用 toUtf8 () 代替。
警告: 此函数不 可重入 .