summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools
diff options
context:
space:
mode:
authorLiang Qi <liang.qi@qt.io>2018-08-07 18:12:02 +0000
committerThe Qt Project <gerrit-noreply@qt-project.org>2018-08-07 18:12:02 +0000
commitee2e38490d51667e878ed1732df387a6d9f2a5fe (patch)
tree4f3b02ab7220326d918b199d60fb33fc497d6dac /src/corelib/tools
parent491e427bb2d3cafccbb26d2ca3b7e128d786a564 (diff)
parent053e7cce79d4bef99ec85101b0d22bbb171072c5 (diff)
Merge "Merge remote-tracking branch 'origin/5.11' into dev" into refs/staging/dev
Diffstat (limited to 'src/corelib/tools')
-rw-r--r--src/corelib/tools/qlocale.cpp12
-rw-r--r--src/corelib/tools/qlocale.qdoc4
-rw-r--r--src/corelib/tools/qstring.cpp4
-rw-r--r--src/corelib/tools/qstringlist.cpp8
4 files changed, 18 insertions, 10 deletions
diff --git a/src/corelib/tools/qlocale.cpp b/src/corelib/tools/qlocale.cpp
index 7341d196cb..24fd597e52 100644
--- a/src/corelib/tools/qlocale.cpp
+++ b/src/corelib/tools/qlocale.cpp
@@ -1791,6 +1791,8 @@ QString QLocale::toString(qulonglong i) const
Returns a localized string representation of the given \a date in the
specified \a format.
If \a format is an empty string, an empty string is returned.
+
+ \sa QDate::toString()
*/
QString QLocale::toString(const QDate &date, const QString &format) const
@@ -1805,6 +1807,8 @@ QString QLocale::toString(const QDate &date, const QString &format) const
Returns a localized string representation of the given \a date in the
specified \a format.
If \a format is an empty string, an empty string is returned.
+
+ \sa QDate::toString()
*/
QString QLocale::toString(const QDate &date, QStringView format) const
{
@@ -1857,6 +1861,8 @@ static bool timeFormatContainsAP(QStringView format)
Returns a localized string representation of the given \a time according
to the specified \a format.
If \a format is an empty string, an empty string is returned.
+
+ \sa QTime::toString()
*/
QString QLocale::toString(const QTime &time, const QString &format) const
{
@@ -1870,6 +1876,8 @@ QString QLocale::toString(const QTime &time, const QString &format) const
Returns a localized string representation of the given \a time according
to the specified \a format.
If \a format is an empty string, an empty string is returned.
+
+ \sa QTime::toString()
*/
QString QLocale::toString(const QTime &time, QStringView format) const
{
@@ -1883,6 +1891,8 @@ QString QLocale::toString(const QTime &time, QStringView format) const
Returns a localized string representation of the given \a dateTime according
to the specified \a format.
If \a format is an empty string, an empty string is returned.
+
+ \sa QDateTime::toString(), QDate::toString(), QTime::toString()
*/
QString QLocale::toString(const QDateTime &dateTime, const QString &format) const
@@ -1897,6 +1907,8 @@ QString QLocale::toString(const QDateTime &dateTime, const QString &format) cons
Returns a localized string representation of the given \a dateTime according
to the specified \a format.
If \a format is an empty string, an empty string is returned.
+
+ \sa QDateTime::toString(), QDate::toString(), QTime::toString()
*/
QString QLocale::toString(const QDateTime &dateTime, QStringView format) const
{
diff --git a/src/corelib/tools/qlocale.qdoc b/src/corelib/tools/qlocale.qdoc
index 131552b7b7..bbb13bd165 100644
--- a/src/corelib/tools/qlocale.qdoc
+++ b/src/corelib/tools/qlocale.qdoc
@@ -939,6 +939,8 @@
locale doesn't support narrow names, so you should avoid using it
for date formatting. Also, for the system locale this format is
the same as ShortFormat.
+
+ \sa QDateTime::toString(), QDate::toString(), QTime::toString()
*/
/*!
@@ -1103,6 +1105,8 @@
\value ListToSeparatedString a string that represents a join of a given QStringList with a locale-defined separator.
\value NativeLanguageName a string that represents the name of the native language.
\value NativeCountryName a string that represents the name of the native country.
+
+ \sa FormatType
*/
/*!
diff --git a/src/corelib/tools/qstring.cpp b/src/corelib/tools/qstring.cpp
index 056ffebcbe..6030d7058c 100644
--- a/src/corelib/tools/qstring.cpp
+++ b/src/corelib/tools/qstring.cpp
@@ -7388,7 +7388,7 @@ ushort QString::toUShort(bool *ok, int base) const
\snippet qstring/main.cpp 66
\warning The QString content may only contain valid numerical characters
- which includes the plus/minus sign, the characters g and e used in scientific
+ which includes the plus/minus sign, the character e used in scientific
notation, and the decimal point. Including the unit or additional characters
leads to a conversion error.
@@ -7424,7 +7424,7 @@ double QString::toDouble(bool *ok) const
to \c false, and success by setting *\a{ok} to \c true.
\warning The QString content may only contain valid numerical characters
- which includes the plus/minus sign, the characters g and e used in scientific
+ which includes the plus/minus sign, the character e used in scientific
notation, and the decimal point. Including the unit or additional characters
leads to a conversion error.
diff --git a/src/corelib/tools/qstringlist.cpp b/src/corelib/tools/qstringlist.cpp
index c9db39a29f..e9b7397a74 100644
--- a/src/corelib/tools/qstringlist.cpp
+++ b/src/corelib/tools/qstringlist.cpp
@@ -611,8 +611,6 @@ static int lastIndexOfMutating(const QStringList *that, QRegExp &rx, int from)
the list, searching forward from index position \a from. Returns
-1 if no item matched.
- By default, this function is case sensitive.
-
\sa lastIndexOf(), contains(), QRegExp::exactMatch()
*/
int QtPrivate::QStringList_indexOf(const QStringList *that, const QRegExp &rx, int from)
@@ -630,8 +628,6 @@ int QtPrivate::QStringList_indexOf(const QStringList *that, const QRegExp &rx, i
the list, searching forward from index position \a from. Returns
-1 if no item matched.
- By default, this function is case sensitive.
-
If an item matched, the \a rx regular expression will contain the
matched objects (see QRegExp::matchedLength, QRegExp::cap).
@@ -650,8 +646,6 @@ int QtPrivate::QStringList_indexOf(const QStringList *that, QRegExp &rx, int fro
from is -1 (the default), the search starts at the last item.
Returns -1 if no item matched.
- By default, this function is case sensitive.
-
\sa indexOf(), contains(), QRegExp::exactMatch()
*/
int QtPrivate::QStringList_lastIndexOf(const QStringList *that, const QRegExp &rx, int from)
@@ -670,8 +664,6 @@ int QtPrivate::QStringList_lastIndexOf(const QStringList *that, const QRegExp &r
from is -1 (the default), the search starts at the last item.
Returns -1 if no item matched.
- By default, this function is case sensitive.
-
If an item matched, the \a rx regular expression will contain the
matched objects (see QRegExp::matchedLength, QRegExp::cap).