Home
last modified time | relevance | path

Searched refs:GetRegion (Results 1 – 25 of 27) sorted by relevance

12

/base/global/resource_management/frameworks/resmgr/src/
Dlocale_matcher.cpp245 current->GetRegion()) == LocaleMatcher::EN_GB_ENCODE)) { in CompareRegionWhenQaag()
248 …f ((other != nullptr) && (Utils::EncodeLocale(other->GetLanguage(), nullptr, other->GetRegion()) == in CompareRegionWhenQaag()
301 current->GetRegion()); in CompareScript()
307 other->GetRegion()); in CompareScript()
342 if (current == nullptr || current->GetRegion() == nullptr) { in AlphabeticallyCompare()
345 if (other == nullptr || other->GetRegion() == nullptr) { in AlphabeticallyCompare()
349 char currentFirstChar = (current->GetRegion())[0]; in AlphabeticallyCompare()
350 char otherFirstChar = (other->GetRegion())[0]; in AlphabeticallyCompare()
374 if (current == nullptr || current->GetRegion() == nullptr) { in CompareWhenRegionIsNull()
377 if (other == nullptr || other->GetRegion() == nullptr) { in CompareWhenRegionIsNull()
[all …]
Dres_locale.cpp150 Utils::StrLen(other->GetScript()), other->GetRegion(), Utils::StrLen(other->GetRegion())); in Copy()
158 const char *ResLocale::GetRegion() const in GetRegion() function in OHOS::Global::Resource::ResLocale
380 .setRegion(resLocale->GetRegion()).setScript(resLocale->GetScript()).build(errCode); in BuildFromString()
Dres_config_impl.cpp92 .setRegion(resLocale->GetRegion()).setScript(resLocale->GetScript()).build(errCode); in SetLocaleInfo()
223 this->GetResLocale()->GetScript(), this->GetResLocale()->GetRegion()); in CopyLocale()
/base/global/resource_management_lite/frameworks/resmgr_lite/src/
Dlocale_matcher.cpp245 current->GetRegion()) == LocaleMatcher::EN_GB_ENCODE)) { in CompareRegionWhenQaag()
248 …f ((other != nullptr) && (Utils::EncodeLocale(other->GetLanguage(), nullptr, other->GetRegion()) == in CompareRegionWhenQaag()
302 current->GetRegion()); in CompareScript()
308 other->GetRegion()); in CompareScript()
343 if (current == nullptr || current->GetRegion() == nullptr) { in AlphabeticallyCompare()
346 if (other == nullptr || other->GetRegion() == nullptr) { in AlphabeticallyCompare()
350 char currentFirstChar = (current->GetRegion())[0]; in AlphabeticallyCompare()
351 char otherFirstChar = (other->GetRegion())[0]; in AlphabeticallyCompare()
375 if (current == nullptr || current->GetRegion() == nullptr) { in CompareWhenRegionIsNull()
378 if (other == nullptr || other->GetRegion() == nullptr) { in CompareWhenRegionIsNull()
[all …]
Dres_config_impl.cpp35 …turn this->SetLocaleInfo(localeInfo.GetLanguage(), localeInfo.GetScript(), localeInfo.GetRegion()); in SetLocaleInfo()
63 resLocale->GetScript(), resLocale->GetRegion()); in SetLocaleInfo()
133 this->GetResLocale()->GetScript(), this->GetResLocale()->GetRegion()); in CopyLocale()
136 other.GetLocaleInfo()->GetScript(), other.GetLocaleInfo()->GetRegion()); in CopyLocale()
Dres_locale.cpp135 Utils::StrLen(other->GetScript()), other->GetRegion(), Utils::StrLen(other->GetRegion())); in CopyFromLocaleInfo()
144 Utils::StrLen(other->GetScript()), other->GetRegion(), Utils::StrLen(other->GetRegion())); in Copy()
152 const char *ResLocale::GetRegion() const in GetRegion() function in OHOS::Global::Resource::ResLocale
338 localeInfo.GetScript(), localeInfo.GetRegion()); in UpdateDefault()
370 resLocale->GetScript(), resLocale->GetRegion()); in BuildFromString()
Dglobal.cpp108 || g_resConfig->GetLocaleInfo()->GetRegion() == nullptr) { in GLOBAL_GetRegion()
114 if (strncpy_s(region, len, g_resConfig->GetLocaleInfo()->GetRegion(), in GLOBAL_GetRegion()
115 strlen(g_resConfig->GetLocaleInfo()->GetRegion())) != EOK) { in GLOBAL_GetRegion()
/base/global/resource_management_lite/frameworks/resmgr_lite/test/unittest/lite/common/
Dlocale_info_test.cpp188 EXPECT_TRUE(std::strcmp("CN", currentLocaleInfo->GetRegion()) == 0);
214 EXPECT_TRUE(std::strcmp("CN", currentLocaleInfo->GetRegion()) == 0);
225 EXPECT_TRUE(std::strcmp("US", currentLocaleInfo->GetRegion()) == 0);
240 EXPECT_TRUE(std::strcmp("US", currentLocaleInfo->GetRegion()) == 0);
277 EXPECT_TRUE(std::strcmp("CN", localeInfo->GetRegion()) == 0);
316 EXPECT_TRUE(std::strcmp("CN", localeInfo->GetRegion()) == 0);
397 EXPECT_TRUE(localeInfo->GetRegion() == nullptr);
418 EXPECT_TRUE(std::strcmp("CN", localeInfo->GetRegion()) == 0);
469 EXPECT_TRUE(localeInfo->GetRegion() == nullptr);
490 EXPECT_TRUE(std::strcmp("US", localeInfo->GetRegion()) == 0);
[all …]
Dhap_parser_test.cpp98 EXPECT_EQ(std::string("CN"), config->GetLocaleInfo()->GetRegion());
/base/global/i18n_lite/interfaces/kits/js/builtin/src/
Dlocale_module.cpp39 static char *GetRegion(void) in GetRegion() function
74 char *region = GetRegion(); in GetLocale()
/base/global/i18n/frameworks/intl/test/fuzztest/localeinfo_fuzzer/
Dlocaleinfo_fuzzer.cpp34 locale->GetRegion(); in DoSomethingInterestingWithMyAPI()
/base/global/i18n/frameworks/intl/src/
Dpreferred_language.cpp199 std::string resourceCountry = maximizedResourceLocale.GetRegion(); in IsMatched()
203 std::string preferredCountry = preferredLocaleInfo.GetRegion(); in IsMatched()
227 std::string systemRegion = systemLocaleInfo.GetRegion(); in GetPreferredLocale()
Dnumber_format.cpp292 GetDefaultPreferredUnit(localeInfo->GetRegion(), unitType, preferredUnits); in Format()
294 GetPreferredUnit(localeInfo->GetRegion(), unitUsage, preferredUnits); in Format()
Dlocale_info.cpp203 std::string LocaleInfo::GetRegion() const in GetRegion() function in OHOS::Global::I18n::LocaleInfo
/base/global/resource_management_lite/frameworks/resmgr_lite/include/
Dres_locale.h42 const char *GetRegion() const;
/base/global/i18n_lite/interfaces/kits/i18n/include/
Dlocale_info.h155 const char *GetRegion() const;
/base/global/resource_management/frameworks/resmgr/include/
Dres_locale.h46 const char *GetRegion() const;
/base/global/i18n_lite/frameworks/i18n/src/
Dlocale_info.cpp95 if ((GetLanguage() == nullptr) || (GetRegion() == nullptr)) { in IsDefaultLocale()
98 return ((strcmp(GetLanguage(), "en") == 0) && (strcmp(GetRegion(), "US") == 0)); in IsDefaultLocale()
187 const char *LocaleInfo::GetRegion() const in GetRegion() function in LocaleInfo
Ddata_resource.cpp505 const char *region = src.GetRegion(); in GetFallbackMask()
/base/global/i18n/frameworks/intl/include/
Dlocale_info.h36 std::string GetRegion() const;
/base/global/resource_management_lite/frameworks/resmgr_lite/src/utils/
Dutils.cpp127 return Utils::EncodeRegion(locale->GetRegion()); in EncodeRegionByResLocale()
/base/global/i18n/interfaces/js/kits/include/
Dintl_addon.h72 static napi_value GetRegion(napi_env env, napi_callback_info info);
/base/global/resource_management/frameworks/resmgr/src/utils/
Dutils.cpp204 return Utils::EncodeRegion(locale->GetRegion()); in EncodeRegionByResLocale()
/base/global/i18n/frameworks/intl/test/unittest/
Dintl_test.cpp115 EXPECT_EQ(loc->GetRegion(), "JP");
146 EXPECT_EQ(loc->GetRegion(), region);
1742 res = locale->GetRegion();
/base/global/i18n_lite/frameworks/i18n/test/unittest/lite/common/
Di18n_test.cpp91 const char *region = locale2.GetRegion();
137 const char *region = locale.GetRegion();

12