qt5base-lts/tests/auto/corelib/text
Edward Welbourne 9dd8e655cd Limit QByteArray's 8-bit support to ASCII
Previously it handled Latin-1, which made it incompatible with UTF-8,
which is now our preferred 8-bit encoding. For Qt6 it is limited to
ASCII. Adjusted tests to match. QLatin1String::compare() turned out
to be relying on qstrnicmp()'s Latin-1 handling.

Removed some spurious Q_UNLIKELY()s and tidied up code a little in the
process.

[ChangeLog][QtCore][Important Behavior Changes] Encoding-dependent
features of QByteArrray are now limited to ASCII, where previously
they worked for the whole of Latin-1. This affects case-insensitive
comparison, notably including qstricmp() and qstrnicmp(), and
case-transforming functions.

Fixes: QTBUG-84323
Change-Id: I2925d9908f8654599195a2860847b17083911b41
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2020-06-04 10:39:53 +02:00
..
qbytearray Limit QByteArray's 8-bit support to ASCII 2020-06-04 10:39:53 +02:00
qbytearraylist Regenerate tests/auto/corelib/text 2019-11-12 17:26:05 +00:00
qbytearraymatcher Port qtbase/tests/auto/corelib/text tests to CMake 2020-04-27 14:34:51 +02:00
qbytedatabuffer Regenerate projects one last time before merge 2020-02-12 17:30:49 +00:00
qchar QChar: add fromUcs{2,4}() 2020-05-09 06:26:08 +00:00
qcollator Port qtbase/tests/auto/corelib/text tests to CMake 2020-04-27 14:34:51 +02:00
qlatin1string Port qtbase/tests/auto/corelib/text tests to CMake 2020-04-27 14:34:51 +02:00
qlocale Rework QLocale and QDateTime tests that expect CET abbreviation 2020-05-28 15:15:17 +02:00
qregexp Remove QRegExp from QVariant 2020-05-14 12:19:47 +00:00
qregularexpression Port QRegularExpression to QStringView, drop QStringRef 2020-05-31 21:46:32 +02:00
qstring Add QStringView::split() methods 2020-06-01 20:43:21 +02:00
qstring_no_cast_from_bytearray Regenerate tests/auto/corelib/text 2019-11-12 17:26:05 +00:00
qstringapisymmetry Limit QByteArray's 8-bit support to ASCII 2020-06-04 10:39:53 +02:00
qstringbuilder Port qtbase/tests/auto/corelib/text tests to CMake 2020-04-27 14:34:51 +02:00
qstringconverter Streamline the code in the conversion to and from utf8 2020-05-14 07:51:45 +02:00
qstringiterator Sweep of int-ish → char-ish types near calls to QString::fromU*() 2020-05-12 05:43:37 +00:00
qstringlist Remove QRegExp support from QString and StringList 2020-05-14 14:19:47 +02:00
qstringmatcher Regenerate tests/auto/corelib/text 2019-11-12 17:26:05 +00:00
qstringref tst_qstringref: remove some wtf? 2020-05-14 20:30:35 +00:00
qstringtokenizer Long live QStringTokenizer! 2020-06-03 19:13:54 +02:00
qstringview QStringView: add converting constructor from array-like containers 2020-05-14 12:19:47 +00:00
qtextboundaryfinder Remove QTextCodec dependency from test 2020-05-14 07:50:49 +02:00
.prev_CMakeLists.txt Port qtbase/tests/auto/corelib/text tests to CMake 2020-04-27 14:34:51 +02:00
CMakeLists.txt Long live QStringTokenizer! 2020-06-03 19:13:54 +02:00
text.pro Long live QStringTokenizer! 2020-06-03 19:13:54 +02:00