Home
last modified time | relevance | path

Searched refs:GetRegion (Results 1 - 25 of 39) sorted by relevance

12

/base/global/resource_management_lite/frameworks/resmgr_lite/src/
H A Dlocale_matcher.cpp245 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 Dres_config_impl.cpp35 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 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()
H A 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/frameworks/resmgr/src/
H A Dlocale_matcher.cpp248 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 Dres_locale.cpp149 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 Dres_config_impl.cpp112 .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 Dlocale_matcher.cpp128 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 Dlocale_util.cpp47 return EncodeRegion(locale->GetRegion().c_str()); in EncodeRegionByLocaleInfo()
H A Dnumber_format.cpp349 GetDefaultPreferredUnit(localeInfo->GetRegion(), unitType, preferredUnits); in Format()
351 GetPreferredUnit(localeInfo->GetRegion(), unitUsage, preferredUnits); in Format()
H A Dlocale_info.cpp205 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 Dlocale_info_test.cpp188 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 Dhap_parser_test.cpp98 EXPECT_EQ(std::string("CN"), config->GetLocaleInfo()->GetRegion()); in HWTEST_F()
/base/global/i18n_lite/interfaces/kits/js/builtin/src/
H A 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/
H A Dlocaleinfo_fuzzer.cpp34 locale->GetRegion(); in DoSomethingInterestingWithMyAPI()
/base/global/resource_management/frameworks/resmgr/include/
H A Dres_locale.h46 const char *GetRegion() const;
/base/global/resource_management_lite/frameworks/resmgr_lite/include/
H A Dres_locale.h42 const char *GetRegion() const;
/base/global/i18n_lite/interfaces/kits/i18n/include/
H A Dlocale_info.h155 const char *GetRegion() const;
/base/global/i18n/frameworks/intl/include/
H A Dlocale_info.h36 std::string GetRegion() const;
/base/telephony/core_service/utils/vcard/include/contact_data/
H A Dvcard_postal_data.h34 std::string GetRegion();
/base/global/i18n_lite/frameworks/i18n/src/
H A Dlocale_info.cpp82 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 Dutils.cpp127 return Utils::EncodeRegion(locale->GetRegion()); in EncodeRegionByResLocale()
/base/telephony/core_service/utils/vcard/src/contact_data/
H A Dvcard_postal_data.cpp119 std::string VCardPostalData::GetRegion() in GetRegion() function in OHOS::Telephony::VCardPostalData
/base/global/i18n/interfaces/js/kits/include/
H A Dintl_addon.h72 static napi_value GetRegion(napi_env env, napi_callback_info info);
/base/telephony/core_service/services/network_search/src/
H A Doperator_name_utils.cpp219 std::string languageCode = localeInfo.GetLanguage() + "_" + localeInfo.GetRegion(); in GetNameByLocale()

Completed in 14 milliseconds

12