summaryrefslogtreecommitdiffstats
path: root/src/testlib/doc/snippets
diff options
context:
space:
mode:
authorEdward Welbourne <edward.welbourne@qt.io>2020-02-25 12:30:06 +0100
committerEdward Welbourne <eddy@chaos.org.uk>2020-04-02 19:42:34 +0100
commit4d9f1a87de7a6e50e89f96836bc2f0cf6e229dda (patch)
treed23d09b398e9950303eab7033a21b4c436cc5f7f /src/testlib/doc/snippets
parenta20697a3940ede60b2fd5eac0ffd1a57b132191a (diff)
Move qlocalexml2cpp.py's XML-reading to QLocaleXmlReader
This new class mirrors the existing QLocaleXmlWriter and places the two side-by-side in qlocalexml.py, rather than having the writing and reading in separate places. Made judicious use of transformed versions of mappings to save repeated iteration of a mapping's entries to do lookups on fist entries of pair-values; several (id, name, code) data-sets are sometimes indexed by id, sometimes by name. Reworked the default_map, that the complicated compareLocaleKeys() used in sorting locale keys, to map IDs instead of names; the function also needed the locale_map so that it could convert IDs to names, which we can skip by going directly with IDs. Task-number: QTBUG-81344 Change-Id: Iff6a97f7f0755b56dda70d8a6796ec074c558910 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'src/testlib/doc/snippets')
0 files changed, 0 insertions, 0 deletions