Use likelySubtags to instantiate a locale id from it's short form
authorKonstantin Ritt <ritt.ks@gmail.com>
Wed, 21 Nov 2012 04:08:24 +0000 (06:08 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Wed, 21 Nov 2012 17:23:59 +0000 (18:23 +0100)
commitfe8962d3a506a850878401309f81247c80f3d203
treeef90091eb6f7d6eaaddf0ff357f76cf5ddcf768f
parente7c79face6ec361e4ad0ff8303f1becafac8b2b6
Use likelySubtags to instantiate a locale id from it's short form

...just like described in http://www.unicode.org/reports/tr35/#Likely_Subtags.
This is much more effective than current "guessing" algorithm
+ makes it possible to instantiate a locale by the script or territory code only.

Change-Id: I674f8476e65b01c56960b6e83a1a346df0715274
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
src/corelib/tools/qlocale.cpp
src/corelib/tools/qlocale_data_p.h
src/corelib/tools/qlocale_p.h
tests/auto/corelib/tools/qlocale/test/test.pro
tests/auto/corelib/tools/qlocale/tst_qlocale.cpp
util/local_database/cldr2qlocalexml.py
util/local_database/qlocalexml2cpp.py