Qt 3 Support Members for QStringThe 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. Public Functions
Static Public Members
Member Function Documentationconst char * QString::ascii () constUse toAscii() instead. Warning: This function is not reentrant. See also setAscii(). QChar QString::constref ( uint i ) constUse at() instead. bool QString::contains ( QChar c, bool cs ) constUse the contains(QChar, Qt::CaseSensitive) overload instead. bool QString::contains ( const QString & s, bool cs ) constUse the contains(QString, Qt::CaseSensitive) overload instead. QString QString::copy () constUse simple assignment instead. QString is implicitly shared so if a copy is modified only the copy is changed. bool QString::endsWith ( const QString & s, bool cs ) constUse the endsWith(QString, Qt::CaseSensitive) overload instead. int QString::find ( QChar c, int i = 0, bool cs = true ) constUse indexOf() instead. int QString::find ( const QString & s, int i = 0, bool cs = true ) constUse indexOf() instead. int QString::find ( const QRegExp & rx, int i = 0 ) constUse indexOf() instead. int QString::findRev ( QChar c, int i = -1, bool cs = true ) constUse lastIndexOf() instead. int QString::findRev ( const QString & s, int i = -1, bool cs = true ) constUse lastIndexOf() instead. int QString::findRev ( const QRegExp & rx, int i = -1 ) constUse lastIndexOf() instead. QString QString::fromUcs2 ( const ushort * unicode, int size = -1 ) [static]Use fromUtf16() instead. const char * QString::latin1 () constUse toLatin1() instead. Warning: This function is not reentrant. See also setLatin1(). QString QString::leftJustify ( int width, QChar fill = QLatin1Char( ' ' ), bool trunc = false ) constUse leftJustified() instead. QByteArray QString::local8Bit () constUse toLocal8Bit() instead. Warning: This function is not reentrant. QString QString::lower () constUse toLower() instead. QChar & QString::ref ( uint i )Use operator[]() instead. QString & QString::remove ( QChar c, bool cs )Use the remove(QChar, Qt::CaseSensitive) overload instead. QString & QString::remove ( const QString & s, bool cs )Use the remove(QString, Qt::CaseSensitive) overload instead. QString & QString::replace ( QChar c, const QString & after, bool cs )Use the replace(QChar, QString, Qt::CaseSensitive) overload instead. QString & QString::replace ( const QString & before, const QString & after, bool cs )Use the replace(QString, QString, Qt::CaseSensitive) overload instead. QString & QString::replace ( char c, const QString & after, bool cs )Use the replace(QChar, QString, Qt::CaseSensitive) overload instead. QString & QString::replace ( char c, const QString & after, Qt::CaseSensitivity cs )Use the replace(QChar, QString, Qt::CaseSensitive) overload instead. QString QString::rightJustify ( int width, QChar fill = QLatin1Char( ' ' ), bool trunc = false ) constUse rightJustified() instead. QString & QString::setAscii ( const char * str, int len = -1 )Use fromAscii() instead. See also ascii(). QString & QString::setLatin1 ( const char * str, int len = -1 )Use fromLatin1() instead. See also latin1(). void QString::setLength ( int nl )Use resize() instead. See also length(). QString & QString::setUnicodeCodes ( const ushort * unicode_as_ushorts, int size )Use setUtf16() instead. QString QString::simplifyWhiteSpace () constUse simplified() instead. bool QString::startsWith ( const QString & s, bool cs ) constUse the startsWith(QString, Qt::CaseSensitive) overload instead. QString QString::stripWhiteSpace () constUse trimmed() instead. const ushort * QString::ucs2 () constUse utf16() instead. QString QString::upper () constUse toUpper() instead. QByteArray QString::utf8 () constUse toUtf8() instead. Warning: This function is not reentrant. QString::operator const char * () constUse toAscii().constData() instead.
|
Попытка перевода Qt документации. Если есть желание присоединиться, или если есть замечания или пожелания, то заходите на форум: Перевод Qt документации на русский язык... Люди внесшие вклад в перевод: Команда переводчиков |