qt5base-lts/util
Ievgenii Meshcheriakov 4f53c703e4 QLocale: Extend support for language codes
This commit extends functionality for QLocale::codeToLanguage()
and QLocale::languageToCode() by adding an additional argument
that allows selection of the ISO 639 code-set to consider for
those operations.

The following ISO 639 codes are supported:
    * Part 1
    * Part 2 bibliographic
    * Part 2 terminological
    * Part 3

As a result of this change the codeToLanguage() overload without
the additional argument now returns a Language value if it matches
any know code. Previously a valid language was returned only if
the function argument matched the first code defined for that
language from the above list.

[ChangeLog][QtCore][QLocale] Added overloads for codeToLanguage()
and languageToCode() that support specifying which ISO 639 codes
to consider.

Fixes: QTBUG-98129
Change-Id: I4da8a89e2e68a673cf63a621359cded609873fa2
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
2021-12-09 03:45:08 +01:00
..
accessibilityinspector Another round of replacing 0 with nullptr 2020-10-07 23:02:47 +02:00
aglfn Updated license headers 2016-01-21 18:55:18 +00:00
android Rename deprecated ANDROID_SDK_HOME to ANDROID_SDK_ROOT 2021-10-22 17:21:10 +02:00
cmake configure: Remove unused facility to define variable assignments 2021-11-01 22:32:01 +01:00
edid Edid vendor table generator (2/N): use idiomatic C++ 2021-04-21 15:28:54 +02:00
glgen Remove the openglextensions module 2020-06-10 09:35:04 +02:00
gradientgen Replace Qt CONSTEXPR defines with constexpr 2020-08-14 15:52:58 +02:00
includemocs QtCore: include mocs 2017-05-05 03:03:30 +00:00
integrity
lexgen Replace QtTest headers with QTest 2020-12-22 15:20:30 +01:00
locale_database QLocale: Extend support for language codes 2021-12-09 03:45:08 +01:00
plugintest Updated license headers 2016-01-21 18:55:18 +00:00
publicSuffix Eliminate the need to preprocess the public suffix list 2021-01-25 18:03:00 +01:00
qfloat16-tables Round float->qfloat16 to even 2020-09-06 12:35:12 +02:00
unicode Update UCD to Revision 28 2021-10-18 16:45:10 +00:00
wasm/qtwasmserver Say hello to qtwasmserver 2021-12-06 16:36:09 +01:00
x86simdgen Move qsimd* from corelib/tools to corelib/global 2020-03-26 09:15:32 +01:00
xkbdatagen Add the "Territory" enumerated type for QLocale 2021-04-15 20:17:49 +08:00