qstringalgorithms.h: add pure, noexcept, constexpr
... where they were missing. Change-Id: I58c32e57675b5d5ee500722933ef4a356a679e46 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
This commit is contained in:
parent
4628351c3f
commit
353a6946b1
@ -11438,7 +11438,7 @@ bool QStringRef::isRightToLeft() const
|
||||
|
||||
\sa QString::isRightToLeft()
|
||||
*/
|
||||
bool QtPrivate::isRightToLeft(QStringView string)
|
||||
bool QtPrivate::isRightToLeft(QStringView string) noexcept
|
||||
{
|
||||
const ushort *p = reinterpret_cast<const ushort*>(string.data());
|
||||
const ushort * const end = p + string.size();
|
||||
|
@ -235,7 +235,7 @@ QT_DEPRECATED_X("Use QLatin1String") typedef QLatin1String QLatin1Literal;
|
||||
//
|
||||
// QLatin1String inline implementations
|
||||
//
|
||||
inline bool QtPrivate::isLatin1(QLatin1String) noexcept
|
||||
Q_DECL_CONSTEXPR bool QtPrivate::isLatin1(QLatin1String) noexcept
|
||||
{ return true; }
|
||||
|
||||
//
|
||||
|
@ -92,12 +92,13 @@ Q_REQUIRED_RESULT Q_CORE_EXPORT QByteArray convertToLatin1(QStringView str);
|
||||
Q_REQUIRED_RESULT Q_CORE_EXPORT QByteArray convertToUtf8(QStringView str);
|
||||
Q_REQUIRED_RESULT Q_CORE_EXPORT QByteArray convertToLocal8Bit(QStringView str);
|
||||
Q_REQUIRED_RESULT Q_CORE_EXPORT QVector<uint> convertToUcs4(QStringView str);
|
||||
Q_REQUIRED_RESULT Q_CORE_EXPORT bool isRightToLeft(QStringView string);
|
||||
|
||||
Q_REQUIRED_RESULT Q_CORE_EXPORT bool isAscii(QLatin1String s) noexcept;
|
||||
Q_REQUIRED_RESULT Q_CORE_EXPORT bool isAscii(QStringView s) noexcept;
|
||||
Q_REQUIRED_RESULT bool isLatin1(QLatin1String s) noexcept; // in qstring.h
|
||||
Q_REQUIRED_RESULT Q_CORE_EXPORT bool isLatin1(QStringView s) noexcept;
|
||||
Q_REQUIRED_RESULT Q_CORE_EXPORT Q_DECL_PURE_FUNCTION bool isRightToLeft(QStringView string) noexcept;
|
||||
|
||||
Q_REQUIRED_RESULT Q_CORE_EXPORT Q_DECL_PURE_FUNCTION bool isAscii(QLatin1String s) noexcept;
|
||||
Q_REQUIRED_RESULT Q_CORE_EXPORT Q_DECL_PURE_FUNCTION bool isAscii(QStringView s) noexcept;
|
||||
Q_REQUIRED_RESULT Q_DECL_CONSTEXPR inline bool isLatin1(QLatin1String s) noexcept;
|
||||
Q_REQUIRED_RESULT Q_CORE_EXPORT Q_DECL_PURE_FUNCTION bool isLatin1(QStringView s) noexcept;
|
||||
|
||||
} // namespace QtPRivate
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user