qt6-bb10/util/locale_database
Edward Welbourne c08a31634f Separate offsets from sizes in QLocale's data
This enables us to make the sizes quint8 and benefit from the
resulting packing, making the locale data smaller. The sizes for long
month-name lists (which concatenate twelve names with semicolon as
separator) can overflow an 8-bit member, so use quint16 where needed.

Re-ordered the data in QLocaleData and QCalendarLocale. Now all
long-short(-narrow) families arise in that order; and any standalone
is grouped with the one of the same length. (This cost 20 bytes in the
date-format table, which optimises out more duplication if short is
before long, but the saving in the (smaller) time-format table more
than make up for it; and 20 bytes isn't worth the confusion that being
inconsistent in ordering might cause.)

At the same time, drop trailing semicolons from list entries (which
join various names with semicolon) as they're not needed: we know
where the end of the list is, because we know the size of the string
that results from concatenation. The code that parses such lists can
even correctly handle empty entries at the end.

Saves 26 kB of data in the compiled binaries.

Task-number: QTBUG-81053
Change-Id: If6ccc96a6910828817aa605d10fd814f567ae1e8
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
2020-01-30 17:58:53 +01:00
..
testlocales Rename util/locale_database/ to include the e that was missing 2019-05-20 20:42:10 +02:00
README Rename util/locale_database/ to include the e that was missing 2019-05-20 20:42:10 +02:00
cldr2qlocalexml.py Separate offsets from sizes in QLocale's data 2020-01-30 17:58:53 +01:00
cldr2qtimezone.py Update CLDR to v36 2019-10-25 11:44:48 +02:00
dateconverter.py Rename util/locale_database/ to include the e that was missing 2019-05-20 20:42:10 +02:00
enumdata.py Update CLDR to v36 2019-10-25 11:44:48 +02:00
formattags.txt Rename util/locale_database/ to include the e that was missing 2019-05-20 20:42:10 +02:00
localexml.py Separate offsets from sizes in QLocale's data 2020-01-30 17:58:53 +01:00
qlocalexml2cpp.py Separate offsets from sizes in QLocale's data 2020-01-30 17:58:53 +01:00
xpathlite.py Suggest name, when available, for unknown codes 2019-05-20 20:42:11 +02:00

README

locale_database is used to generate qlocale data from CLDR.

CLDR is the Common Locale Data Repository, a database for localized
data (like date formats, country names etc).  It is provided by the
Unicode consortium.