qt5base-lts/tests/auto/corelib/text
Edward Welbourne bb6a73260e Support digit-grouping correctly
Read three more values from CLDR and add a byte to the bit-fields at
the end of QLocaleData, indicating the three group sizes. This adds
three new parameters to various low-level formatting functions. At the
same time, rename ThousandsGroup to GroupDigits, more faithfully
expressing what this (internal) option means.

This replaces commit 27d1391280 with a
fuller implementation that handles digit-grouping in any of the ways
that CLDR supports. The formerly "Indian" formatting now also applies
to at least some locales for Bangladesh, Bhutan and Sri Lanka.

Fixed Costa Rica currency formatting test that wrongly put a separator
after the first digit; the locale (in common with several Spanish
locales) requires at least two digits before the first separator.

[ChangeLog][QtCore][Important Behavior Changes] Some locales require
more than one digit before the first grouping separator; others use
group sizes other than three. The latter was partially supported (only
for India) at 5.15 but is now systematically supported; the former is
now also supported.

Task-number: QTBUG-24301
Fixes: QTBUG-81050
Change-Id: I4ea4e331f3254d1f34801cddf51f3c65d3815573
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2020-07-14 14:52:08 +02:00
..
qbytearray Add tst_QByteArrayApiSymmetry test 2020-07-08 08:45:14 +02:00
qbytearrayapisymmetry Fix QByteArray::count implementation for longer data 2020-07-09 18:38:33 +02:00
qbytearraylist CMake: Regenerate tests with new qt_ prefixed APIs 2020-07-09 09:38:35 +02:00
qbytearraymatcher Port qtbase/tests/auto/corelib/text tests to CMake 2020-04-27 14:34:51 +02:00
qbytearrayview Introduce QByteArrayView 2020-07-08 08:45:49 +02:00
qbytedatabuffer CMake: Regenerate tests with new qt_ prefixed APIs 2020-07-09 09:38:35 +02:00
qchar Add ; to Q_UNUSED 2020-07-07 11:51:48 +02:00
qcollator tst_QCollator: avoid an unused variable warning 2020-07-13 12:03:21 +02:00
qlatin1string Port qtbase/tests/auto/corelib/text tests to CMake 2020-04-27 14:34:51 +02:00
qlocale Support digit-grouping correctly 2020-07-14 14:52:08 +02:00
qregularexpression CMake: Regenerate tests with new qt_ prefixed APIs 2020-07-09 09:38:35 +02:00
qstring Move QRegExp and its remaining mentions out of QtCore 2020-07-13 10:53:23 +02:00
qstring_no_cast_from_bytearray CMake: Regenerate tests with new qt_ prefixed APIs 2020-07-09 09:38:35 +02:00
qstringapisymmetry Use QList instead of QVector in corelib tests 2020-07-07 11:48:45 +02:00
qstringbuilder CMake: Regenerate tests with new qt_ prefixed APIs 2020-07-09 09:38:35 +02:00
qstringconverter Use QList instead of QVector in corelib tests 2020-07-07 11:48:45 +02:00
qstringiterator CMake: Regenerate tests with new qt_ prefixed APIs 2020-07-09 09:38:35 +02:00
qstringlist CMake: Regenerate tests with new qt_ prefixed APIs 2020-07-09 09:38:35 +02:00
qstringmatcher CMake: Regenerate tests with new qt_ prefixed APIs 2020-07-09 09:38:35 +02:00
qstringref CMake: Regenerate tests with new qt_ prefixed APIs 2020-07-09 09:38:35 +02:00
qstringtokenizer Use QList instead of QVector in corelib tests 2020-07-07 11:48:45 +02:00
qstringview Use QList instead of QVector in corelib tests 2020-07-07 11:48:45 +02:00
qtextboundaryfinder Remove QTextCodec dependency from test 2020-05-14 07:50:49 +02:00
.prev_CMakeLists.txt Move QRegExp and its remaining mentions out of QtCore 2020-07-13 10:53:23 +02:00
CMakeLists.txt Move QRegExp and its remaining mentions out of QtCore 2020-07-13 10:53:23 +02:00
text.pro Move QRegExp and its remaining mentions out of QtCore 2020-07-13 10:53:23 +02:00