qt5base-lts/tests/auto/corelib/text
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
..
qbytearray Remove the qmake project files 2021-01-07 15:32:28 +01:00
qbytearrayapisymmetry Remove the qmake project files 2021-01-07 15:32:28 +01:00
qbytearraylist Remove the qmake project files 2021-01-07 15:32:28 +01:00
qbytearraymatcher Remove the qmake project files 2021-01-07 15:32:28 +01:00
qbytearrayview Remove the qmake project files 2021-01-07 15:32:28 +01:00
qbytedatabuffer Remove the qmake project files 2021-01-07 15:32:28 +01:00
qchar Remove the qmake project files 2021-01-07 15:32:28 +01:00
qcollator Remove the qmake project files 2021-01-07 15:32:28 +01:00
qlatin1string Remove the qmake project files 2021-01-07 15:32:28 +01:00
qlocale QLocale: Allow direct conversion to language, country, and script codes 2021-01-18 15:52:31 +01:00
qregularexpression Remove the qmake project files 2021-01-07 15:32:28 +01:00
qstring Remove the qmake project files 2021-01-07 15:32:28 +01:00
qstring_no_cast_from_bytearray Remove the qmake project files 2021-01-07 15:32:28 +01:00
qstringapisymmetry Remove the qmake project files 2021-01-07 15:32:28 +01:00
qstringbuilder Remove the qmake project files 2021-01-07 15:32:28 +01:00
qstringconverter Remove the qmake project files 2021-01-07 15:32:28 +01:00
qstringiterator Remove the qmake project files 2021-01-07 15:32:28 +01:00
qstringlist Remove the qmake project files 2021-01-07 15:32:28 +01:00
qstringmatcher Remove the qmake project files 2021-01-07 15:32:28 +01:00
qstringtokenizer Remove the qmake project files 2021-01-07 15:32:28 +01:00
qstringview Remove the qmake project files 2021-01-07 15:32:28 +01:00
qtextboundaryfinder Remove the qmake project files 2021-01-07 15:32:28 +01:00
CMakeLists.txt Android: blacklist a list of failing tests for android 2020-11-04 12:27:49 +02:00