Home
last modified time | relevance | path

Searched refs:LocaleItem (Results 1 - 7 of 7) sorted by relevance

/base/global/i18n/frameworks/intl/include/
H A Dsystem_locale_manager.h39 struct LocaleItem { struct
94 * @return std::vector<LocaleItem> sort result.
96 std::vector<LocaleItem> GetLanguageInfoArray(const std::vector<std::string> &languages,
104 * @return std::vector<LocaleItem> sort result.
106 std::vector<LocaleItem> GetCountryInfoArray(const std::vector<std::string> &countries, const SortOptions &options,
117 void SortLocaleItemList(std::vector<LocaleItem> &localeItemList, const SortOptions &options);
/base/global/i18n/frameworks/intl/src/
H A Dsystem_locale_manager.cpp46 std::vector<LocaleItem> SystemLocaleManager::GetLanguageInfoArray(const std::vector<std::string> &languages, in GetLanguageInfoArray()
49 std::vector<LocaleItem> localeItemList; in GetLanguageInfoArray()
79 LocaleItem item { *it, suggestionType, languageDisplayName, languageNativeName }; in GetLanguageInfoArray()
93 std::vector<LocaleItem> SystemLocaleManager::GetCountryInfoArray(const std::vector<std::string> &countries, in GetCountryInfoArray()
96 std::vector<LocaleItem> localeItemList; in GetCountryInfoArray()
117 LocaleItem item { *it, suggestionType, regionDisplayName, pseudoProcessedRegion }; in GetCountryInfoArray()
124 void SystemLocaleManager::SortLocaleItemList(std::vector<LocaleItem> &localeItemList, const SortOptions &options) in SortLocaleItemList()
132 auto compareFunc = [collator, options](LocaleItem item1, LocaleItem item2) { in SortLocaleItemList()
/base/global/i18n/interfaces/js/kits/include/
H A Dsystem_locale_manager_addon.h46 static napi_value CreateLocaleItemArray(napi_env env, const std::vector<LocaleItem> &localeItemList);
47 static napi_value CreateLocaleItem(napi_env env, const LocaleItem &localeItem);
/base/global/resource_management_lite/frameworks/resmgr_lite/include/
H A Dglobal_utils.h109 typedef struct LocaleItem { struct
113 } LocaleItem; typedef
/base/global/i18n/interfaces/js/kits/src/
H A Dsystem_locale_manager_addon.cpp136 std::vector<LocaleItem> localeItemList = in GetLanguageInfoArray()
175 std::vector<LocaleItem> localeItemList = obj->systemLocaleManager_->GetCountryInfoArray(countryList, options, err); in GetCountryInfoArray()
285 napi_value SystemLocaleManagerAddon::CreateLocaleItemArray(napi_env env, const std::vector<LocaleItem> &localeItemList) in CreateLocaleItemArray()
290 HILOG_ERROR_I18N("create LocaleItem array failed."); in CreateLocaleItemArray()
297 HILOG_ERROR_I18N("Failed to set LocaleItem element."); in CreateLocaleItemArray()
304 napi_value SystemLocaleManagerAddon::CreateLocaleItem(napi_env env, const LocaleItem &localeItem) in CreateLocaleItem()
/base/global/resource_management_lite/frameworks/resmgr_lite/src/
H A Dglobal_utils.c44 static void SetLocaleItemViaKeys(const KeyParam *keyParam, LocaleItem *localeItem);
155 static void SetLocaleItemViaKeys(const KeyParam *keyParam, LocaleItem *localeItem) in SetLocaleItemViaKeys()
186 LocaleItem locale = {0, 0, 0}; in FindOffsetByLangWithScriptOrRegion()
222 LocaleItem locale = {0, 0, 0}; in FindOffsetByAllParam()
/base/global/i18n/frameworks/intl/test/unittest/
H A Dintl_test_extent.cpp346 std::vector<LocaleItem> languageInfos = systemLocaleManager->GetLanguageInfoArray(languages, sortOptions, status); in HWTEST_F()
349 std::vector<LocaleItem> countryInfos = systemLocaleManager->GetCountryInfoArray(countries, sortOptions, status); in HWTEST_F()

Completed in 7 milliseconds