/base/global/resource_management/frameworks/resmgr/src/ |
D | locale_matcher.cpp | 245 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 …]
|
D | res_locale.cpp | 150 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()
|
D | res_config_impl.cpp | 92 .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/ |
D | locale_matcher.cpp | 245 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 …]
|
D | res_config_impl.cpp | 35 …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()
|
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()
|
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_lite/frameworks/resmgr_lite/test/unittest/lite/common/ |
D | locale_info_test.cpp | 188 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 …]
|
D | hap_parser_test.cpp | 98 EXPECT_EQ(std::string("CN"), config->GetLocaleInfo()->GetRegion());
|
/base/global/i18n_lite/interfaces/kits/js/builtin/src/ |
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/ |
D | localeinfo_fuzzer.cpp | 34 locale->GetRegion(); in DoSomethingInterestingWithMyAPI()
|
/base/global/i18n/frameworks/intl/src/ |
D | preferred_language.cpp | 199 std::string resourceCountry = maximizedResourceLocale.GetRegion(); in IsMatched() 203 std::string preferredCountry = preferredLocaleInfo.GetRegion(); in IsMatched() 227 std::string systemRegion = systemLocaleInfo.GetRegion(); in GetPreferredLocale()
|
D | number_format.cpp | 292 GetDefaultPreferredUnit(localeInfo->GetRegion(), unitType, preferredUnits); in Format() 294 GetPreferredUnit(localeInfo->GetRegion(), unitUsage, preferredUnits); in Format()
|
D | locale_info.cpp | 203 std::string LocaleInfo::GetRegion() const in GetRegion() function in OHOS::Global::I18n::LocaleInfo
|
/base/global/resource_management_lite/frameworks/resmgr_lite/include/ |
D | res_locale.h | 42 const char *GetRegion() const;
|
/base/global/i18n_lite/interfaces/kits/i18n/include/ |
D | locale_info.h | 155 const char *GetRegion() const;
|
/base/global/resource_management/frameworks/resmgr/include/ |
D | res_locale.h | 46 const char *GetRegion() const;
|
/base/global/i18n_lite/frameworks/i18n/src/ |
D | locale_info.cpp | 95 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
|
D | data_resource.cpp | 505 const char *region = src.GetRegion(); in GetFallbackMask()
|
/base/global/i18n/frameworks/intl/include/ |
D | locale_info.h | 36 std::string GetRegion() const;
|
/base/global/resource_management_lite/frameworks/resmgr_lite/src/utils/ |
D | utils.cpp | 127 return Utils::EncodeRegion(locale->GetRegion()); in EncodeRegionByResLocale()
|
/base/global/i18n/interfaces/js/kits/include/ |
D | intl_addon.h | 72 static napi_value GetRegion(napi_env env, napi_callback_info info);
|
/base/global/resource_management/frameworks/resmgr/src/utils/ |
D | utils.cpp | 204 return Utils::EncodeRegion(locale->GetRegion()); in EncodeRegionByResLocale()
|
/base/global/i18n/frameworks/intl/test/unittest/ |
D | intl_test.cpp | 115 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/ |
D | i18n_test.cpp | 91 const char *region = locale2.GetRegion(); 137 const char *region = locale.GetRegion();
|