Home
last modified time | relevance | path

Searched refs:GetLocaleInfo (Results 1 – 14 of 14) sorted by relevance

/base/global/resource_management_lite/frameworks/resmgr_lite/src/
Dglobal.cpp91 if (g_resConfig == nullptr || g_resConfig->GetLocaleInfo() == nullptr in GLOBAL_GetLanguage()
92 || g_resConfig->GetLocaleInfo()->GetLanguage() == nullptr) { in GLOBAL_GetLanguage()
98 if (strncpy_s(language, len, g_resConfig->GetLocaleInfo()->GetLanguage(), in GLOBAL_GetLanguage()
99 strlen(g_resConfig->GetLocaleInfo()->GetLanguage())) != EOK) { in GLOBAL_GetLanguage()
107 if (g_resConfig == nullptr || g_resConfig->GetLocaleInfo() == nullptr in GLOBAL_GetRegion()
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()
152 if (g_resConfig == nullptr || g_resConfig->GetLocaleInfo() == nullptr in GLOBAL_GetValueById()
153 || g_resConfig->GetLocaleInfo()->GetLanguage() == nullptr) { in GLOBAL_GetValueById()
[all …]
Dres_config_impl.cpp93 const LocaleInfo *ResConfigImpl::GetLocaleInfo() const in GetLocaleInfo() function in OHOS::Global::Resource::ResConfigImpl
120 if (this->GetLocaleInfo() == nullptr && other.GetLocaleInfo() != nullptr) { in CopyLocale()
123 if (this->GetLocaleInfo() != nullptr && other.GetLocaleInfo() == nullptr) { in CopyLocale()
130 if (this->GetResLocale() != nullptr && other.GetLocaleInfo() != nullptr) { in CopyLocale()
135 other.GetLocaleInfo()->GetLanguage(), in CopyLocale()
136 other.GetLocaleInfo()->GetScript(), other.GetLocaleInfo()->GetRegion()); in CopyLocale()
146 RState rs = temp->CopyFromLocaleInfo(other.GetLocaleInfo()); in CopyLocale()
151 LocaleInfo *tempLocale = new(std::nothrow) LocaleInfo(*other.GetLocaleInfo()); in CopyLocale()
Dresource_manager_impl.cpp604 if (resConfig.GetLocaleInfo() == nullptr) { in UpdateResConfig()
607 if (resConfig.GetLocaleInfo()->GetLanguage() == nullptr) { in UpdateResConfig()
/base/global/resource_management/frameworks/resmgr/src/
Dres_config_impl.cpp161 const Locale *ResConfigImpl::GetLocaleInfo() const in GetLocaleInfo() function in OHOS::Global::Resource::ResConfigImpl
210 if (this->GetLocaleInfo() == nullptr && other.GetLocaleInfo() != nullptr) { in CopyLocale()
213 if (this->GetLocaleInfo() != nullptr && other.GetLocaleInfo() == nullptr) { in CopyLocale()
220 if (this->GetResLocale() != nullptr && other.GetLocaleInfo() != nullptr) { in CopyLocale()
225 other.GetLocaleInfo()->getLanguage(), in CopyLocale()
226 other.GetLocaleInfo()->getScript(), other.GetLocaleInfo()->getCountry()); in CopyLocale()
236 RState rs = temp->CopyFromLocaleInfo(other.GetLocaleInfo()); in CopyLocale()
242 Locale tempLocale = icu::LocaleBuilder().setLocale(*other.GetLocaleInfo()).build(errCode); in CopyLocale()
Dresource_manager_impl.cpp845 if (resConfig.GetLocaleInfo() == nullptr) { in UpdateResConfig()
848 if (resConfig.GetLocaleInfo()->getLanguage() == nullptr) { in UpdateResConfig()
851 const char* language = resConfig.GetLocaleInfo()->getLanguage(); in UpdateResConfig()
852 const char* region = resConfig.GetLocaleInfo()->getCountry(); in UpdateResConfig()
/base/global/resource_management_lite/frameworks/resmgr_lite/test/unittest/lite/common/
Dhap_parser_test.cpp97 EXPECT_EQ(std::string("zh"), config->GetLocaleInfo()->GetLanguage());
98 EXPECT_EQ(std::string("CN"), config->GetLocaleInfo()->GetRegion());
99 EXPECT_EQ(std::string("Hans"), config->GetLocaleInfo()->GetScript());
Dresource_manager_test.cpp342 EXPECT_EQ(nullptr, rc.GetLocaleInfo());
372 EXPECT_EQ("en", std::string(rc.GetLocaleInfo()->GetLanguage()));
/base/global/resource_management/frameworks/resmgr/test/unittest/common/
Dhap_parser_test.cpp103 EXPECT_EQ(std::string("zh"), config->GetLocaleInfo()->getLanguage());
104 EXPECT_EQ(std::string("CN"), config->GetLocaleInfo()->getCountry());
105 EXPECT_EQ(std::string("Hans"), config->GetLocaleInfo()->getScript());
Dresource_manager_test.cpp284 EXPECT_EQ(nullptr, rc.GetLocaleInfo());
316 EXPECT_EQ("en", std::string(rc.GetLocaleInfo()->getLanguage()));
/base/global/resource_management_lite/frameworks/resmgr_lite/include/
Dres_config_impl.h74 const LocaleInfo *GetLocaleInfo() const;
Dres_config.h39 virtual const LocaleInfo *GetLocaleInfo() const = 0;
/base/global/resource_management/interfaces/inner_api/include/
Dres_config.h51 virtual const Locale *GetLocaleInfo() const = 0;
/base/global/resource_management/frameworks/resmgr/include/
Dres_config_impl.h91 const Locale *GetLocaleInfo() const;
/base/global/resource_management/interfaces/js/innerkits/core/src/
Dresource_manager_napi_utils.cpp471 const icu::Locale *localeInfo = cfg->GetLocaleInfo(); in GetLocale()