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:
Anton Kudryavtsev 2023-10-18 18:41:01 +03:00
parent e3d34d2fdb
commit d1f40ea087
2 changed files with 0 additions and 22 deletions

View File

@ -9070,26 +9070,6 @@ QString QtPrivate::argToQString(QLatin1StringView pattern, size_t n, const ArgBa
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
Returns \c true if the string is read right to left.

View File

@ -964,8 +964,6 @@ public:
inline bool isNull() const { return d->isNull(); }
bool isSimpleText() const;
bool isRightToLeft() const;
[[nodiscard]] bool isValidUtf16() const noexcept
{ return QStringView(*this).isValidUtf16(); }