/base/global/resource_management_lite/frameworks/resmgr_lite/src/ |
D | global.cpp | 91 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 …]
|
D | res_config_impl.cpp | 93 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()
|
D | resource_manager_impl.cpp | 604 if (resConfig.GetLocaleInfo() == nullptr) { in UpdateResConfig() 607 if (resConfig.GetLocaleInfo()->GetLanguage() == nullptr) { in UpdateResConfig()
|
/base/global/resource_management/frameworks/resmgr/src/ |
D | res_config_impl.cpp | 161 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()
|
D | resource_manager_impl.cpp | 845 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/ |
D | hap_parser_test.cpp | 97 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());
|
D | resource_manager_test.cpp | 342 EXPECT_EQ(nullptr, rc.GetLocaleInfo()); 372 EXPECT_EQ("en", std::string(rc.GetLocaleInfo()->GetLanguage()));
|
/base/global/resource_management/frameworks/resmgr/test/unittest/common/ |
D | hap_parser_test.cpp | 103 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());
|
D | resource_manager_test.cpp | 284 EXPECT_EQ(nullptr, rc.GetLocaleInfo()); 316 EXPECT_EQ("en", std::string(rc.GetLocaleInfo()->getLanguage()));
|
/base/global/resource_management_lite/frameworks/resmgr_lite/include/ |
D | res_config_impl.h | 74 const LocaleInfo *GetLocaleInfo() const;
|
D | res_config.h | 39 virtual const LocaleInfo *GetLocaleInfo() const = 0;
|
/base/global/resource_management/interfaces/inner_api/include/ |
D | res_config.h | 51 virtual const Locale *GetLocaleInfo() const = 0;
|
/base/global/resource_management/frameworks/resmgr/include/ |
D | res_config_impl.h | 91 const Locale *GetLocaleInfo() const;
|
/base/global/resource_management/interfaces/js/innerkits/core/src/ |
D | resource_manager_napi_utils.cpp | 471 const icu::Locale *localeInfo = cfg->GetLocaleInfo(); in GetLocale()
|