diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2017-01-31 00:33:01 +0100 |
---|---|---|
committer | Marc Mutz <marc.mutz@kdab.com> | 2017-02-09 12:08:29 +0000 |
commit | e58401a75b29beb38d37a40072106d5ef7cb0336 (patch) | |
tree | 105dbeddd9ecb257b6311ebec792d7e8ef45fdbb /src/corelib/tools/qstring.cpp | |
parent | dc41aaa294457681beda069abbac2e3dfc93873d (diff) |
QLatin1String: add missing isNull(), isEmpty()
All Qt string containers have them, so tst_qstringapisymmetry pointed out
their absence.
[ChangeLog][QtCore][QLatin1String] Added isEmpty(), isNull().
Change-Id: I5ed27ed036c29a7d0f041910fce6c27d9270dd26
Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
Diffstat (limited to 'src/corelib/tools/qstring.cpp')
-rw-r--r-- | src/corelib/tools/qstring.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/corelib/tools/qstring.cpp b/src/corelib/tools/qstring.cpp index 66ce29c859..61eccbf1dd 100644 --- a/src/corelib/tools/qstring.cpp +++ b/src/corelib/tools/qstring.cpp @@ -8366,6 +8366,24 @@ QString &QString::setRawData(const QChar *unicode, int size) Returns the size of the Latin-1 string stored in this object. */ +/*! \fn bool QLatin1String::isNull() const + \since 5.10 + + Returns whether the Latin-1 string stored in this object is null + (\c{data() == nullptr}) or not. + + \sa isEmpty(), data() +*/ + +/*! \fn bool QLatin1String::isEmpty() const + \since 5.10 + + Returns whether the Latin-1 string stored in this object is empty + (\c{size() == 0}) or not. + + \sa isNull(), size() +*/ + /*! \fn QLatin1Char QLatin1String::at(int pos) const \since 5.8 |