Refactor the ICU code for QLocale
authorLars Knoll <lars.knoll@nokia.com>
Fri, 1 Jun 2012 15:51:06 +0000 (17:51 +0200)
committerQt by Nokia <qt-info@nokia.com>
Sun, 10 Jun 2012 17:08:49 +0000 (19:08 +0200)
commit97e177e58d195f78ac103b3dd0b8ecedb1e07d4c
treeeda9251fd21110f048acd8d5a32d0b32959e642c
parentc631927b764133ea3c90613262c5a1587b0937a8
Refactor the ICU code for QLocale

Clean up the ICU code and make it thread-safe. Add a
QIcuData structure to QLocalePrivate, that contains
ICU specific data.

Link against ICU directly, greatly simplifying the
code.

Also fix a bug in the locale specific case conversion
code that would cause it to fail and fall back to the
QString code if the output string was larger than the
input.

Change-Id: Ie67e5ea14fa204ebc5887d7aaeb1a4f3ecaf8697
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
src/corelib/tools/qlocale.cpp
src/corelib/tools/qlocale.h
src/corelib/tools/qlocale_icu.cpp
src/corelib/tools/qlocale_p.h
src/corelib/tools/qstring.cpp
src/corelib/tools/tools.pri