summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2014-08-05 19:48:20 -0300
committerThiago Macieira <thiago.macieira@intel.com>2014-08-07 22:39:40 +0200
commite8150576cdae1f4e83aa66053dc80f44a0ccaee7 (patch)
treefa9ada1f9bcaa81e1c25829763bab2f9c17fab6b /src/corelib/tools
parent9ad5dd0e8fabb871cac2ecc1faaee2ffe22c87d6 (diff)
Document missing QLatin1String methods
Most of them were added before 5.0, but it's ok to just list as 5.0. Change-Id: I6e83a210a0165659f710d47ed595e9e89d5dbac9 Reviewed-by: Martin Smith <martin.smith@digia.com>
Diffstat (limited to 'src/corelib/tools')
-rw-r--r--src/corelib/tools/qstring.cpp88
1 files changed, 88 insertions, 0 deletions
diff --git a/src/corelib/tools/qstring.cpp b/src/corelib/tools/qstring.cpp
index 83f1bac2ef..6c8db11212 100644
--- a/src/corelib/tools/qstring.cpp
+++ b/src/corelib/tools/qstring.cpp
@@ -7888,6 +7888,11 @@ QString &QString::setRawData(const QChar *unicode, int size)
Returns the Latin-1 string stored in this object.
*/
+/*! \fn const char *QLatin1String::data() const
+
+ Returns the Latin-1 string stored in this object.
+*/
+
/*! \fn int QLatin1String::size() const
Returns the size of the Latin-1 string stored in this object.
@@ -7918,6 +7923,20 @@ QString &QString::setRawData(const QChar *unicode, int size)
go through QObject::tr(), for example.
*/
+/*!
+ \fn bool QLatin1String::operator==(const QByteArray &other) const
+ \since 5.0
+ \overload
+
+ The \a other byte array is converted to a QString using
+ the QString::fromUtf8() function.
+
+ You can disable this operator by defining \c
+ QT_NO_CAST_FROM_ASCII when you compile your applications. This
+ can be useful if you want to ensure that all user-visible strings
+ go through QObject::tr(), for example.
+*/
+
/*! \fn bool QLatin1String::operator!=(const QString &other) const
Returns \c true if this string is not equal to string \a other;
@@ -7944,6 +7963,20 @@ QString &QString::setRawData(const QChar *unicode, int size)
*/
/*!
+ \fn bool QLatin1String::operator!=(const QByteArray &other) const
+ \since 5.0
+ \overload operator!=()
+
+ The \a other byte array is converted to a QString using
+ the QString::fromUtf8() function.
+
+ You can disable this operator by defining \c
+ QT_NO_CAST_FROM_ASCII when you compile your applications. This
+ can be useful if you want to ensure that all user-visible strings
+ go through QObject::tr(), for example.
+*/
+
+/*!
\fn bool QLatin1String::operator>(const QString &other) const
Returns \c true if this string is lexically greater than string \a
@@ -7970,6 +8003,20 @@ QString &QString::setRawData(const QChar *unicode, int size)
*/
/*!
+ \fn bool QLatin1String::operator>(const QByteArray &other) const
+ \since 5.0
+ \overload
+
+ The \a other const char pointer is converted to a QString using
+ the QString::fromUtf8() function.
+
+ You can disable this operator by defining \c QT_NO_CAST_FROM_ASCII
+ when you compile your applications. This can be useful if you want
+ to ensure that all user-visible strings go through QObject::tr(),
+ for example.
+*/
+
+/*!
\fn bool QLatin1String::operator<(const QString &other) const
Returns \c true if this string is lexically less than the \a other
@@ -7996,6 +8043,20 @@ QString &QString::setRawData(const QChar *unicode, int size)
*/
/*!
+ \fn bool QLatin1String::operator<(const QByteArray &other) const
+ \since 5.0
+ \overload
+
+ The \a other const char pointer is converted to a QString using
+ the QString::fromUtf8() function.
+
+ You can disable this operator by defining \c
+ QT_NO_CAST_FROM_ASCII when you compile your applications. This
+ can be useful if you want to ensure that all user-visible strings
+ go through QObject::tr(), for example.
+*/
+
+/*!
\fn bool QLatin1String::operator>=(const QString &other) const
Returns \c true if this string is lexically greater than or equal
@@ -8021,6 +8082,20 @@ QString &QString::setRawData(const QChar *unicode, int size)
go through QObject::tr(), for example.
*/
+/*!
+ \fn bool QLatin1String::operator>=(const QByteArray &other) const
+ \since 5.0
+ \overload
+
+ The \a other array is converted to a QString using
+ the QString::fromUtf8() function.
+
+ You can disable this operator by defining \c
+ QT_NO_CAST_FROM_ASCII when you compile your applications. This
+ can be useful if you want to ensure that all user-visible strings
+ go through QObject::tr(), for example.
+*/
+
/*! \fn bool QLatin1String::operator<=(const QString &other) const
Returns \c true if this string is lexically less than or equal
@@ -8046,6 +8121,19 @@ QString &QString::setRawData(const QChar *unicode, int size)
go through QObject::tr(), for example.
*/
+/*!
+ \fn bool QLatin1String::operator<=(const QByteArray &other) const
+ \since 5.0
+ \overload
+
+ The \a other array is converted to a QString using
+ the QString::fromUtf8() function.
+
+ You can disable this operator by defining \c
+ QT_NO_CAST_FROM_ASCII when you compile your applications. This
+ can be useful if you want to ensure that all user-visible strings
+ go through QObject::tr(), for example.
+*/
/*! \fn bool operator==(QLatin1String s1, QLatin1String s2)