Home
last modified time | relevance | path

Searched refs:lang_ids (Results 1 – 2 of 2) sorted by relevance

/system/teeui/libteeui/prebuilt/localization/
DConfirmationUITranslations.cpp1319 int langIdMatch(const char* const* lang_ids, const char* lang_id) { in langIdMatch() argument
1324 ret = findStr(lang_ids, lang_id); in langIdMatch()
1345 ret = findStr(lang_ids, lang_id_buf); in langIdMatch()
DConfirmationUITranslations-test.cpp29 extern int langIdMatch(const char* const* lang_ids, const char* lang_id);
45 static const char* test_lang_id_match(const char* lang_ids[], const char* lang_id) { in test_lang_id_match() argument
46 int ret = langIdMatch(lang_ids, lang_id); in test_lang_id_match()
50 return lang_ids[ret]; in test_lang_id_match()
1570 const char* lang_ids[] = { in main() local
1578 ASSERT_STR(test_lang_id_match(lang_ids, "de"), "de"); in main()
1579 ASSERT_STR(test_lang_id_match(lang_ids, "de-DE"), "de"); in main()
1580 ASSERT_STR(test_lang_id_match(lang_ids, "de-CH-1901"), "de"); in main()
1581 ASSERT_STR(test_lang_id_match(lang_ids, "de-AT"), "de"); in main()
1582 ASSERT_STR(test_lang_id_match(lang_ids, "da-DK"), "da"); in main()
[all …]