/base/global/resource_management_lite/frameworks/resmgr_lite/src/ |
H A D | locale_matcher.cpp | 245 current->GetRegion()) == LocaleMatcher::EN_GB_ENCODE)) { in CompareRegionWhenQaag() 248 if ((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() in CompareWhenRegionIsNull() [all...] |
H A D | res_config_impl.cpp | 35 return 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()
|
H A D | res_locale.cpp | 135 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()
|
H A D | global.cpp | 108 || 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/frameworks/resmgr/src/ |
H A D | locale_matcher.cpp | 248 current->GetRegion()) == LocaleMatcher::EN_GB_ENCODE)) { in CompareRegionWhenQaag() 251 if ((other != nullptr) && (Utils::EncodeLocale(other->GetLanguage(), nullptr, other->GetRegion()) == in CompareRegionWhenQaag() 304 current->GetRegion()); in CompareScript() 310 other->GetRegion()); in CompareScript() 345 if (current == nullptr || current->GetRegion() == nullptr) { in AlphabeticallyCompare() 348 if (other == nullptr || other->GetRegion() == nullptr) { in AlphabeticallyCompare() 352 char currentFirstChar = (current->GetRegion())[0]; in AlphabeticallyCompare() 353 char otherFirstChar = (other->GetRegion())[0]; in AlphabeticallyCompare() 377 if (current == nullptr || current->GetRegion() == nullptr) { in CompareWhenRegionIsNull() 380 if (other == nullptr || other->GetRegion() in CompareWhenRegionIsNull() [all...] |
H A D | res_locale.cpp | 149 Utils::StrLen(other->GetScript()), other->GetRegion(), Utils::StrLen(other->GetRegion())); in Copy() 157 const char *ResLocale::GetRegion() const in GetRegion() function in OHOS::Global::Resource::ResLocale 373 .setRegion(resLocale->GetRegion()).setScript(resLocale->GetScript()).build(errCode); in BuildFromString()
|
H A D | res_config_impl.cpp | 112 .setRegion(resLocale->GetRegion()).setScript(resLocale->GetScript()).build(errCode); in BuildLocaleInfo() 305 (*currentResLocale)->GetScript(), (*currentResLocale)->GetRegion()); in CopyLocale()
|
/base/global/i18n/frameworks/intl/src/ |
H A D | locale_matcher.cpp | 128 if ((LocaleUtil::EncodeRegion(request->GetRegion().c_str())) == LocaleUtil::EncodeRegion("US")) { in CompareRegionWhenLangIsNotEqual() 130 return (current->GetRegion().length() == 0) || in CompareRegionWhenLangIsNotEqual() 131 ((LocaleUtil::EncodeRegion(current->GetRegion().c_str())) == LocaleUtil::EncodeRegion("US")); in CompareRegionWhenLangIsNotEqual() 133 return !(other->GetRegion().length() == 0 || in CompareRegionWhenLangIsNotEqual() 134 ((LocaleUtil::EncodeRegion(other->GetRegion().c_str())) == LocaleUtil::EncodeRegion("US"))); in CompareRegionWhenLangIsNotEqual() 153 current->GetRegion().c_str()) == LocaleMatcher::EN_GB_ENCODE)) { in CompareRegionWhenQaag() 157 other->GetRegion().c_str()) == LocaleMatcher::EN_GB_ENCODE)) { in CompareRegionWhenQaag() 167 (localeInfo == nullptr) ? nullptr : localeInfo->GetRegion().c_str()); in IsSimilarToUsEnglish() 236 if (request == nullptr || request->GetRegion().size() == 0) { in CompareRegion() 240 request->GetRegion() in CompareRegion() [all...] |
H A D | locale_util.cpp | 47 return EncodeRegion(locale->GetRegion().c_str());
in EncodeRegionByLocaleInfo()
|
H A D | number_format.cpp | 349 GetDefaultPreferredUnit(localeInfo->GetRegion(), unitType, preferredUnits); in Format() 351 GetPreferredUnit(localeInfo->GetRegion(), unitUsage, preferredUnits); in Format()
|
H A D | locale_info.cpp | 205 std::string LocaleInfo::GetRegion() const
in GetRegion() function in OHOS::Global::I18n::LocaleInfo
|
/base/global/resource_management_lite/frameworks/resmgr_lite/test/unittest/lite/common/ |
H A D | locale_info_test.cpp | 188 EXPECT_TRUE(std::strcmp("CN", currentLocaleInfo->GetRegion()) == 0); in HWTEST_F() 214 EXPECT_TRUE(std::strcmp("CN", currentLocaleInfo->GetRegion()) == 0); in HWTEST_F() 225 EXPECT_TRUE(std::strcmp("US", currentLocaleInfo->GetRegion()) == 0); in HWTEST_F() 240 EXPECT_TRUE(std::strcmp("US", currentLocaleInfo->GetRegion()) == 0); in HWTEST_F() 266 * @tc.desc: Test LocaleInfo GetRegion 277 EXPECT_TRUE(std::strcmp("CN", localeInfo->GetRegion()) == 0); in HWTEST_F() 316 EXPECT_TRUE(std::strcmp("CN", localeInfo->GetRegion()) == 0); in HWTEST_F() 397 EXPECT_TRUE(localeInfo->GetRegion() == nullptr); in HWTEST_F() 418 EXPECT_TRUE(std::strcmp("CN", localeInfo->GetRegion()) == 0); in HWTEST_F() 469 EXPECT_TRUE(localeInfo->GetRegion() in HWTEST_F() [all...] |
H A D | hap_parser_test.cpp | 98 EXPECT_EQ(std::string("CN"), config->GetLocaleInfo()->GetRegion()); in HWTEST_F()
|
/base/global/i18n_lite/interfaces/kits/js/builtin/src/ |
H A D | locale_module.cpp | 39 static char *GetRegion(void) in GetRegion() function 74 char *region = GetRegion(); in GetLocale()
|
/base/global/i18n/frameworks/intl/test/fuzztest/localeinfo_fuzzer/ |
H A D | localeinfo_fuzzer.cpp | 34 locale->GetRegion(); in DoSomethingInterestingWithMyAPI()
|
/base/global/resource_management/frameworks/resmgr/include/ |
H A D | res_locale.h | 46 const char *GetRegion() const;
|
/base/global/resource_management_lite/frameworks/resmgr_lite/include/ |
H A D | res_locale.h | 42 const char *GetRegion() const;
|
/base/global/i18n_lite/interfaces/kits/i18n/include/ |
H A D | locale_info.h | 155 const char *GetRegion() const;
|
/base/global/i18n/frameworks/intl/include/ |
H A D | locale_info.h | 36 std::string GetRegion() const;
|
/base/telephony/core_service/utils/vcard/include/contact_data/ |
H A D | vcard_postal_data.h | 34 std::string GetRegion();
|
/base/global/i18n_lite/frameworks/i18n/src/ |
H A D | locale_info.cpp | 82 if ((GetLanguage() == nullptr) || (GetRegion() == nullptr)) {
in IsDefaultLocale() 85 return ((strcmp(GetLanguage(), "en") == 0) && (strcmp(GetRegion(), "US") == 0));
in IsDefaultLocale() 174 const char *LocaleInfo::GetRegion() const
in GetRegion() function in LocaleInfo
|
/base/global/resource_management_lite/frameworks/resmgr_lite/src/utils/ |
H A D | utils.cpp | 127 return Utils::EncodeRegion(locale->GetRegion()); in EncodeRegionByResLocale()
|
/base/telephony/core_service/utils/vcard/src/contact_data/ |
H A D | vcard_postal_data.cpp | 119 std::string VCardPostalData::GetRegion() in GetRegion() function in OHOS::Telephony::VCardPostalData
|
/base/global/i18n/interfaces/js/kits/include/ |
H A D | intl_addon.h | 72 static napi_value GetRegion(napi_env env, napi_callback_info info);
|
/base/telephony/core_service/services/network_search/src/ |
H A D | operator_name_utils.cpp | 219 std::string languageCode = localeInfo.GetLanguage() + "_" + localeInfo.GetRegion(); in GetNameByLocale()
|