Home
last modified time | relevance | path

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

/base/global/resource_management_lite/frameworks/resmgr_lite/test/unittest/lite/common/
Dlocale_info_test.cpp241 EXPECT_TRUE(std::strcmp("Qaag", currentLocaleInfo->GetScript()) == 0);
295 EXPECT_TRUE(std::strcmp("Hant", localeInfo->GetScript()) == 0);
315 EXPECT_TRUE(std::strcmp("Hant", localeInfo->GetScript()) == 0);
396 EXPECT_TRUE(localeInfo->GetScript() == nullptr);
417 EXPECT_TRUE(std::strcmp("Hant", localeInfo->GetScript()) == 0);
468 EXPECT_TRUE(localeInfo->GetScript() == nullptr);
489 EXPECT_TRUE(localeInfo->GetScript() == nullptr);
525 EXPECT_TRUE(std::strcmp("Latn", localeInfo->GetScript()) == 0);
576 EXPECT_TRUE(localeInfo->GetScript() == nullptr);
Dhap_parser_test.cpp99 EXPECT_EQ(std::string("Hans"), config->GetLocaleInfo()->GetScript());
/base/global/resource_management/frameworks/resmgr/src/
Dlocale_matcher.cpp242 if ((request != nullptr) && (Utils::EncodeLocale(request->GetLanguage(), request->GetScript(), in CompareRegionWhenQaag()
299 if ((current != nullptr) && (current->GetScript() == nullptr)) { in CompareScript()
305 if ((other != nullptr) && (other->GetScript() == nullptr)) { in CompareScript()
313 if (Utils::EncodeLocale(current->GetLanguage(), current->GetScript(), nullptr) == in CompareScript()
315 if (Utils::EncodeLocale(other->GetLanguage(), other->GetScript(), nullptr) == in CompareScript()
387 (request == nullptr) ? nullptr : request->GetScript()); in CompareWhenRegionIsNull()
431 (request == nullptr) ? nullptr : request->GetScript(), in CompareDefaultRegion()
434 …(request == nullptr) ? nullptr : request->GetScript(), (other == nullptr) ? nullptr : other->GetRe… in CompareDefaultRegion()
494 FindDefaultRegionEncode(request->GetLanguage(), request->GetScript()); in CompareRegion()
522 if (!Utils::IsStrEmpty(localeInfo->GetScript())) { in Normalize()
Dres_locale.cpp149 return this->Init(other->GetLanguage(), Utils::StrLen(other->GetLanguage()), other->GetScript(), in Copy()
150 Utils::StrLen(other->GetScript()), other->GetRegion(), Utils::StrLen(other->GetRegion())); in Copy()
163 const char *ResLocale::GetScript() const in GetScript() 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.cpp242 if ((request != nullptr) && (Utils::EncodeLocale(request->GetLanguage(), request->GetScript(), in CompareRegionWhenQaag()
300 if ((current != nullptr) && (current->GetScript() == nullptr)) { in CompareScript()
306 if ((other != nullptr) && (other->GetScript() == nullptr)) { in CompareScript()
314 if (Utils::EncodeLocale(current->GetLanguage(), current->GetScript(), nullptr) == in CompareScript()
316 if (Utils::EncodeLocale(other->GetLanguage(), other->GetScript(), nullptr) == in CompareScript()
388 (request == nullptr) ? nullptr : request->GetScript()); in CompareWhenRegionIsNull()
432 (request == nullptr) ? nullptr : request->GetScript(), in CompareDefaultRegion()
435 …(request == nullptr) ? nullptr : request->GetScript(), (other == nullptr) ? nullptr : other->GetRe… in CompareDefaultRegion()
495 FindDefaultRegionEncode(request->GetLanguage(), request->GetScript()); in CompareRegion()
523 if (!Utils::IsStrEmpty(localeInfo->GetScript())) { in Normalize()
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()
Dres_locale.cpp134 return this->Init(other->GetLanguage(), Utils::StrLen(other->GetLanguage()), other->GetScript(), in CopyFromLocaleInfo()
135 Utils::StrLen(other->GetScript()), other->GetRegion(), Utils::StrLen(other->GetRegion())); in CopyFromLocaleInfo()
143 return this->Init(other->GetLanguage(), Utils::StrLen(other->GetLanguage()), other->GetScript(), in Copy()
144 Utils::StrLen(other->GetScript()), other->GetRegion(), Utils::StrLen(other->GetRegion())); in Copy()
157 const char *ResLocale::GetScript() const in GetScript() function in OHOS::Global::Resource::ResLocale
338 localeInfo.GetScript(), localeInfo.GetRegion()); in UpdateDefault()
370 resLocale->GetScript(), resLocale->GetRegion()); in BuildFromString()
/base/global/i18n/frameworks/intl/test/fuzztest/localeinfo_fuzzer/
Dlocaleinfo_fuzzer.cpp33 locale->GetScript(); in DoSomethingInterestingWithMyAPI()
/base/global/resource_management_lite/frameworks/resmgr_lite/include/
Dres_locale.h44 const char *GetScript() const;
/base/global/i18n_lite/interfaces/kits/i18n/include/
Dlocale_info.h146 const char *GetScript() const;
/base/global/resource_management/frameworks/resmgr/include/
Dres_locale.h48 const char *GetScript() const;
/base/global/i18n/frameworks/intl/include/
Dlocale_info.h35 std::string GetScript() const;
/base/global/i18n/frameworks/intl/src/
Dpreferred_language.cpp197 std::string resourceScript = maximizedResourceLocale.GetScript(); in IsMatched()
210 std::string preferredScript = maximizedResourceLocale.GetScript(); in IsMatched()
Di18n_timezone.cpp262 std::string script = localeinfo.GetScript(); in ComputeLocale()
276 std::string script = localeinfo.GetScript(); in ComputeLocale()
Dlocale_info.cpp198 std::string LocaleInfo::GetScript() const in GetScript() function in OHOS::Global::I18n::LocaleInfo
Dlocale_config.cpp749 std::string script = localeinfo.GetScript(); in ComputeLocale()
763 std::string script = localeinfo.GetScript(); in ComputeLocale()
831 std::string scripts = locale.GetScript(); in GetDsiplayLanguageWithDialect()
/base/global/resource_management_lite/frameworks/resmgr_lite/src/utils/
Dutils.cpp143 return Utils::EncodeScript(locale->GetScript()); in EncodeScriptByResLocale()
/base/global/i18n/interfaces/js/kits/include/
Dintl_addon.h71 static napi_value GetScript(napi_env env, napi_callback_info info);
/base/global/resource_management/frameworks/resmgr/src/utils/
Dutils.cpp220 return Utils::EncodeScript(locale->GetScript()); in EncodeScriptByResLocale()
/base/global/i18n_lite/frameworks/i18n/src/
Dlocale_info.cpp182 const char *LocaleInfo::GetScript() const in GetScript() function in LocaleInfo
Ddata_resource.cpp504 const char *script = src.GetScript(); in GetFallbackMask()
/base/global/i18n/frameworks/intl/test/unittest/
Dintl_test.cpp114 EXPECT_EQ(loc->GetScript(), "Jpan");
145 EXPECT_EQ(loc->GetScript(), script);
1740 res = locale->GetScript();
/base/global/i18n/interfaces/js/kits/src/
Dintl_addon.cpp53 DECLARE_NAPI_GETTER("script", GetScript), in InitLocale()
681 napi_value IntlAddon::GetScript(napi_env env, napi_callback_info info) in GetScript() function in OHOS::Global::I18n::IntlAddon
695 std::string value = obj->locale_->GetScript(); in GetScript()
/base/global/i18n_lite/frameworks/i18n/test/unittest/lite/common/
Di18n_test.cpp152 const char *script = locale.GetScript();