diff options
Diffstat (limited to 'src/corelib/tools/qstring.cpp')
-rw-r--r-- | src/corelib/tools/qstring.cpp | 276 |
1 files changed, 0 insertions, 276 deletions
diff --git a/src/corelib/tools/qstring.cpp b/src/corelib/tools/qstring.cpp index b5efc85391..9e238193a3 100644 --- a/src/corelib/tools/qstring.cpp +++ b/src/corelib/tools/qstring.cpp @@ -3536,29 +3536,6 @@ bool QString::endsWith(const QChar &c, Qt::CaseSensitivity cs) const : foldCase(d->data()[d->size - 1]) == foldCase(c.unicode())); } -/*! \fn const char *QString::ascii() const - \nonreentrant - - Use toAscii() instead. -*/ - -/*! \fn const char *QString::latin1() const - \nonreentrant - - Use toLatin1() instead. -*/ - -/*! \fn const char *QString::utf8() const - \nonreentrant - - Use toUtf8() instead. -*/ - -/*! \fn const char *QString::local8Bit() const - \nonreentrant - - Use toLocal8Bit() instead. -*/ static QByteArray toLatin1_helper(const QChar *data, int length) { @@ -4548,14 +4525,6 @@ QString& QString::fill(QChar ch, int size) */ /*! - \fn int QString::compare(const QString & s1, const QString & s2) - - \overload compare() - - Performs a case sensitive compare of \a s1 and \a s2. -*/ - -/*! \fn int QString::compare(const QString &s1, const QLatin1String &s2, Qt::CaseSensitivity cs) \since 4.2 \overload compare() @@ -7206,13 +7175,6 @@ QString &QString::setRawData(const QChar *unicode, int size) \sa latin1() */ -/*! - \since 4.1 - \fn QLatin1String &QLatin1String::operator=(const QLatin1String &other) - - Constructs a copy of \a other. -*/ - /*! \fn const char *QLatin1String::latin1() const Returns the Latin-1 string stored in this object. @@ -7511,244 +7473,6 @@ QDataStream &operator>>(QDataStream &in, QString &str) } #endif // QT_NO_DATASTREAM -/*! - \fn void QString::setLength(int nl) - - Use resize() instead. -*/ - -/*! - \fn QString QString::copy() const - - Use simple assignment instead. QString is implicitly shared so if - a copy is modified only the copy is changed. -*/ - -/*! - \fn QString &QString::remove(QChar c, bool cs) - - Use the remove(QChar, Qt::CaseSensitive) overload instead. -*/ - -/*! - \fn QString &QString::remove(const QString &s, bool cs) - - Use the remove(QString, Qt::CaseSensitive) overload instead. -*/ - -/*! - \fn QString &QString::replace(QChar c, const QString &after, bool cs) - - Use the replace(QChar, QString, Qt::CaseSensitive) overload instead. -*/ - -/*! - \fn QString &QString::replace(const QString &before, const QString &after, bool cs) - - Use the replace(QString, QString, Qt::CaseSensitive) overload instead. -*/ - -/*! - \fn QString &QString::replace(char c, const QString &after, bool cs) - - Use the replace(QChar, QString, Qt::CaseSensitive) overload instead. -*/ - -/*! - \fn QString &QString::replace(char c, const QString &after, Qt::CaseSensitivity cs) - - Use the replace(QChar, QString, Qt::CaseSensitive) overload instead. -*/ - -/*! - \fn int QString::find(QChar c, int i = 0, bool cs = true) const - - Use indexOf() instead. -*/ - -/*! - \fn int QString::find(const QString &s, int i = 0, bool cs = true) const - - Use indexOf() instead. -*/ - -/*! - \fn int QString::findRev(QChar c, int i = -1, bool cs = true) const - - Use lastIndexOf() instead. -*/ - -/*! - \fn int QString::findRev(const QString &s, int i = -1, bool cs = true) const - - Use lastIndexOf() instead. -*/ - -/*! - \fn int QString::find(const QRegExp &rx, int i=0) const - - Use indexOf() instead. -*/ - -/*! - \fn int QString::find(QRegExp &rx, int i=0) const - \internal - \since 4.5 - - Use indexOf() instead. -*/ - -/*! - \fn int QString::findRev(const QRegExp &rx, int i=-1) const - - Use lastIndexOf() instead. -*/ - -/*! - \fn int QString::findRev(QRegExp &rx, int i=0) const - \internal - \since 4.5 - - Use lastIndexOf() instead. -*/ - -/*! - \fn QBool QString::contains(QChar c, bool cs) const - - Use the contains(QChar, Qt::CaseSensitive) overload instead. -*/ - -/*! - \fn QBool QString::contains(const QString &s, bool cs) const - - Use the contains(QString, Qt::CaseSensitive) overload instead. -*/ - -/*! - \fn bool QString::startsWith(const QString &s, bool cs) const - - Use the startsWith(QString, Qt::CaseSensitive) overload instead. -*/ - - -/*! - \fn bool QString::endsWith(const QString &s, bool cs) const - - Use the endsWith(QString, Qt::CaseSensitive) overload instead. -*/ - -/*! - \fn QString QString::leftJustify(int width, QChar fill = QLatin1Char(' '), bool trunc=false) const - - Use leftJustified() instead. -*/ - -/*! - \fn QString QString::rightJustify(int width, QChar fill = QLatin1Char(' '), bool trunc=false) const - - Use rightJustified() instead. -*/ - -/*! - \fn QString QString::lower() const - - Use toLower() instead. -*/ - -/*! - \fn QString QString::upper() const - - Use toUpper() instead. -*/ - -/*! - \fn QString QString::stripWhiteSpace() const - - Use trimmed() instead. -*/ - -/*! - \fn QString QString::simplifyWhiteSpace() const - - Use simplified() instead. -*/ - -/*! - \fn QString &QString::setUnicodeCodes(const ushort *unicode_as_ushorts, int size) - - Use setUtf16() instead. -*/ - -/*! - \fn ushort *QString::ucs2() const - - Use utf16() instead. -*/ - -/*! - \fn QString QString::fromUcs2(const ushort *unicode, int size = -1) - - Use fromUtf16() instead. -*/ - -/*! - \fn QString &QString::setAscii(const char *str, int len = -1) - - Use fromAscii() instead. -*/ - -/*! - \fn QString &QString::setLatin1(const char *str, int len = -1) - - Use fromLatin1() instead. -*/ - -/*! - \fn QChar QString::constref(uint i) const - - Use at() instead. -*/ - -/*! - \fn QChar &QString::ref(uint i); - - Use operator[]() instead. -*/ - -/*! - \fn QString::operator const char *() const - - Use toAscii().constData() instead. -*/ - -/*! - \class QConstString - \brief The QConstString class is a wrapper for constant Unicode string data. - \compat - - In Qt 4, QConstString is replaced by QString::fromRawData(), a - static function that constructs a QString object based on Unicode - string data. - - Because QString::fromRawData() has slightly more stringent - constraints than QConstString had in Qt 3, the new QConstString - class takes a deep copy of the string data. - - \sa QString::fromRawData() -*/ - -/*! - \fn QConstString::QConstString(const QChar *unicode, int size) - - Use QString(\a unicode, \a size) or - QString::fromRawData(\a unicode, \a size) instead. -*/ - -/*! - \fn const QString &QConstString::string() const - - Returns \c *this. Not necessary in Qt 4. -*/ |