qt5base-lts/tests/auto/corelib/text/qlocale
Kai Köhne f1465c621c QLocale: Allow direct conversion to language, country, and script codes
Currently the codes are only exposed in aggregated form, i.e. through
name(), bcp47Name(). There are use cases though where you are only
interested in either language, country, or script codes. One example
is in Qt Linguist.

This patch therefore exposes the static languageToCode(),
countryToCode(), scriptToCode() methods that were so far only available
in the private API also in the public API.

[ChangeLog][QtCore][QLocale] Added static languageToCode(),
countryToCode() scriptToCode() methods that convert enum values
to the respective ISO code strings.

Fixes: QTBUG-39542
Fixes: QTBUG-64942
Change-Id: Ib1d5c3293e2f53245ba4c1fc8159275bcb290080
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
2021-01-18 15:52:31 +01:00
..
syslocaleapp Remove the qmake project files 2021-01-07 15:32:28 +01:00
test Remove the qmake project files 2021-01-07 15:32:28 +01:00
.gitignore
CMakeLists.txt Remove winrt 2020-06-06 20:25:49 +02:00
tst_qlocale.cpp QLocale: Allow direct conversion to language, country, and script codes 2021-01-18 15:52:31 +01:00