QString: remove isSimpleText method
It's legacy method marked as internal. There are zero occurrences of "isSimpleText" anywhere in Qt or Qt Creator other than qstring.* Change-Id: I4961b7b2539fb6552484e77fbea58ba0e6656921 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
e3d34d2fdb
commit
d1f40ea087
@ -9070,26 +9070,6 @@ QString QtPrivate::argToQString(QLatin1StringView pattern, size_t n, const ArgBa
|
|||||||
return argToQStringImpl(pattern, n, args);
|
return argToQStringImpl(pattern, n, args);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*! \fn bool QString::isSimpleText() const
|
|
||||||
|
|
||||||
\internal
|
|
||||||
*/
|
|
||||||
bool QString::isSimpleText() const
|
|
||||||
{
|
|
||||||
const char16_t *p = d.data();
|
|
||||||
const char16_t * const end = p + d.size;
|
|
||||||
while (p < end) {
|
|
||||||
char16_t uc = *p;
|
|
||||||
// sort out regions of complex text formatting
|
|
||||||
if (uc > 0x058f && (uc < 0x1100 || uc > 0xfb0f)) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
p++;
|
|
||||||
}
|
|
||||||
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*! \fn bool QString::isRightToLeft() const
|
/*! \fn bool QString::isRightToLeft() const
|
||||||
|
|
||||||
Returns \c true if the string is read right to left.
|
Returns \c true if the string is read right to left.
|
||||||
|
@ -964,8 +964,6 @@ public:
|
|||||||
|
|
||||||
inline bool isNull() const { return d->isNull(); }
|
inline bool isNull() const { return d->isNull(); }
|
||||||
|
|
||||||
|
|
||||||
bool isSimpleText() const;
|
|
||||||
bool isRightToLeft() const;
|
bool isRightToLeft() const;
|
||||||
[[nodiscard]] bool isValidUtf16() const noexcept
|
[[nodiscard]] bool isValidUtf16() const noexcept
|
||||||
{ return QStringView(*this).isValidUtf16(); }
|
{ return QStringView(*this).isValidUtf16(); }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user