qt6-bb10/tests/auto/corelib
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
..
animation Include qproperty.h where needed 2021-11-04 21:45:02 +01:00
global Fix tst_qfloat16 runtime failure for INTEGRITY 2021-12-06 18:53:50 +00:00
io QFile: Add open() overload that accepts permissions argument 2021-12-04 01:27:11 +01:00
itemmodels Shorten target name for qsortfilterproxymodel auto tests 2021-11-29 08:08:21 +01:00
kernel tst_qmetatype: factor the most expensive test into its own TU 2021-12-07 15:57:33 +01:00
mimetypes Compile autotests for Integrity 2021-09-20 17:29:04 +03:00
platform Android: Add runOnMainAndroidThread() under QNativeInterface 2021-05-26 23:24:11 +00:00
plugin QNX: check and use elf.h from alternative location 2021-11-30 14:37:52 +02:00
serialization Remove conditioning on Android embedded 2021-09-17 17:30:14 +02:00
text QLocale: Extend support for language codes 2021-12-09 03:45:08 +01:00
thread QThread::create(): request interruption and join on destruction 2021-12-07 16:56:49 +01:00
time Skip QTimeZone::checkOffset() if there are no valid zones to test 2021-11-26 02:14:52 +01:00
tools QVarLengthArray: fix size update on failed append() 2021-12-08 16:39:27 +00:00
CMakeLists.txt Add tests for QAndroidApplication's sdkVersion and activity 2021-05-13 01:41:36 +03:00