/base/global/resource_management_lite/frameworks/resmgr_lite/src/ |
D | locale_matcher.cpp | 242 if ((request != nullptr) && (Utils::EncodeLocale(request->GetLanguage(), request->GetScript(), in CompareRegionWhenQaag() 244 if ((current != nullptr) && (Utils::EncodeLocale(current->GetLanguage(), nullptr, in CompareRegionWhenQaag() 248 …if ((other != nullptr) && (Utils::EncodeLocale(other->GetLanguage(), nullptr, other->GetRegion()) … in CompareRegionWhenQaag() 301 currentEncodedScript = FindDefaultScriptEncode(current->GetLanguage(), in CompareScript() 307 otherEncodedScript = FindDefaultScriptEncode(other->GetLanguage(), in CompareScript() 314 if (Utils::EncodeLocale(current->GetLanguage(), current->GetScript(), nullptr) == in CompareScript() 316 if (Utils::EncodeLocale(other->GetLanguage(), other->GetScript(), nullptr) == in CompareScript() 387 FindDefaultRegionEncode((request == nullptr) ? nullptr : request->GetLanguage(), in CompareWhenRegionIsNull() 396 …currentEncodedLocale = Utils::EncodeLocale((request == nullptr) ? nullptr : request->GetLanguage(), in CompareWhenRegionIsNull() 399 (request == nullptr) ? nullptr : request->GetLanguage(), nullptr, other->GetRegion()); in CompareWhenRegionIsNull() [all …]
|
D | global.cpp | 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() 153 || g_resConfig->GetLocaleInfo()->GetLanguage() == nullptr) { in GLOBAL_GetValueById() 185 || g_resConfig->GetLocaleInfo()->GetLanguage() == nullptr) { in GLOBAL_GetValueByName()
|
D | res_config_impl.cpp | 35 …return this->SetLocaleInfo(localeInfo.GetLanguage(), localeInfo.GetScript(), localeInfo.GetRegion(… in SetLocaleInfo() 62 LocaleInfo *tempLocale = new(std::nothrow) LocaleInfo(resLocale->GetLanguage(), in SetLocaleInfo() 132 this->GetResLocale()->GetLanguage(), in CopyLocale() 135 other.GetLocaleInfo()->GetLanguage(), in CopyLocale()
|
D | res_locale.cpp | 134 return this->Init(other->GetLanguage(), Utils::StrLen(other->GetLanguage()), other->GetScript(), in CopyFromLocaleInfo() 143 return this->Init(other->GetLanguage(), Utils::StrLen(other->GetLanguage()), other->GetScript(), in Copy() 147 const char *ResLocale::GetLanguage() const in GetLanguage() function in OHOS::Global::Resource::ResLocale 337 LocaleInfo *temp = new(std::nothrow) LocaleInfo(localeInfo.GetLanguage(), in UpdateDefault() 369 LocaleInfo *localeInfo = new(std::nothrow) LocaleInfo(resLocale->GetLanguage(), in BuildFromString()
|
D | hap_manager.cpp | 58 this->resConfig_->GetResLocale()->GetLanguage() == nullptr) { in GetPluralRulesAndSelect() 62 std::string language = this->resConfig_->GetResLocale()->GetLanguage(); in GetPluralRulesAndSelect()
|
/base/global/resource_management/frameworks/resmgr/src/ |
D | locale_matcher.cpp | 242 if ((request != nullptr) && (Utils::EncodeLocale(request->GetLanguage(), request->GetScript(), in CompareRegionWhenQaag() 244 if ((current != nullptr) && (Utils::EncodeLocale(current->GetLanguage(), nullptr, in CompareRegionWhenQaag() 248 …if ((other != nullptr) && (Utils::EncodeLocale(other->GetLanguage(), nullptr, other->GetRegion()) … in CompareRegionWhenQaag() 300 currentEncodedScript = FindDefaultScriptEncode(current->GetLanguage(), in CompareScript() 306 otherEncodedScript = FindDefaultScriptEncode(other->GetLanguage(), in CompareScript() 313 if (Utils::EncodeLocale(current->GetLanguage(), current->GetScript(), nullptr) == in CompareScript() 315 if (Utils::EncodeLocale(other->GetLanguage(), other->GetScript(), nullptr) == in CompareScript() 386 FindDefaultRegionEncode((request == nullptr) ? nullptr : request->GetLanguage(), in CompareWhenRegionIsNull() 395 …currentEncodedLocale = Utils::EncodeLocale((request == nullptr) ? nullptr : request->GetLanguage(), in CompareWhenRegionIsNull() 398 (request == nullptr) ? nullptr : request->GetLanguage(), nullptr, other->GetRegion()); in CompareWhenRegionIsNull() [all …]
|
D | res_locale.cpp | 149 return this->Init(other->GetLanguage(), Utils::StrLen(other->GetLanguage()), other->GetScript(), in Copy() 153 const char *ResLocale::GetLanguage() const in GetLanguage() function in OHOS::Global::Resource::ResLocale 373 Locale temp = icu::LocaleBuilder().setLanguage(resLocale->GetLanguage()) in BuildFromString()
|
/base/global/resource_management_lite/frameworks/resmgr_lite/test/unittest/lite/common/ |
D | locale_info_test.cpp | 187 EXPECT_TRUE(std::strcmp("zh", currentLocaleInfo->GetLanguage()) == 0); 213 EXPECT_TRUE(std::strcmp("zh", currentLocaleInfo->GetLanguage()) == 0); 224 EXPECT_TRUE(std::strcmp("en", currentLocaleInfo->GetLanguage()) == 0); 239 EXPECT_TRUE(std::strcmp("en", currentLocaleInfo->GetLanguage()) == 0); 259 EXPECT_TRUE(std::strcmp("zh", localeInfo->GetLanguage()) == 0); 314 EXPECT_TRUE(std::strcmp("zh", localeInfo->GetLanguage()) == 0); 395 EXPECT_TRUE(std::strcmp("zh", localeInfo->GetLanguage()) == 0); 416 EXPECT_TRUE(std::strcmp("zh", localeInfo->GetLanguage()) == 0); 467 EXPECT_TRUE(std::strcmp("zh", localeInfo->GetLanguage()) == 0); 488 EXPECT_TRUE(std::strcmp("en", localeInfo->GetLanguage()) == 0); [all …]
|
/base/global/i18n_lite/interfaces/kits/js/builtin/src/ |
D | locale_module.cpp | 24 static char *GetLanguage(void) in GetLanguage() function 66 char *lang = GetLanguage(); in GetLocale()
|
/base/global/i18n/frameworks/intl/test/fuzztest/localeinfo_fuzzer/ |
D | localeinfo_fuzzer.cpp | 32 locale->GetLanguage(); in DoSomethingInterestingWithMyAPI()
|
/base/account/os_account/frameworks/appaccount/extension/src/ |
D | authorization_extension.cpp | 35 switch (runtime->GetLanguage()) { in Create()
|
/base/inputmethod/imf/frameworks/kits/extension/src/ |
D | inputmethod_extension.cpp | 34 switch (runtime->GetLanguage()) { in Create()
|
/base/print/print_fwk/frameworks/kits/extension/src/ |
D | print_extension.cpp | 35 switch (runtime->GetLanguage()) { in Create()
|
/base/useriam/user_auth_framework/frameworks/js/napi/user_auth_extension/module_loader/ |
D | user_auth_extension.cpp | 31 switch (runtime->GetLanguage()) { in Create()
|
/base/theme/wallpaper_mgr/frameworks/kits/extension/src/ |
D | wallpaper_extension_ability.cpp | 34 switch (runtime->GetLanguage()) { in Create()
|
/base/customization/enterprise_device_management/framework/extension/src/ |
D | enterprise_admin_extension.cpp | 32 switch (runtime->GetLanguage()) { in Create()
|
/base/notification/common_event_service/frameworks/extension/src/ |
D | static_subscriber_extension.cpp | 33 switch (runtime->GetLanguage()) { in Create()
|
/base/global/resource_management_lite/frameworks/resmgr_lite/include/ |
D | res_locale.h | 40 const char *GetLanguage() const;
|
/base/global/i18n_lite/interfaces/kits/i18n/include/ |
D | locale_info.h | 137 const char *GetLanguage() const;
|
/base/global/resource_management/frameworks/resmgr/include/ |
D | res_locale.h | 44 const char *GetLanguage() 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() 177 const char *LocaleInfo::GetLanguage() const in GetLanguage() function in LocaleInfo
|
/base/global/i18n/frameworks/intl/src/ |
D | preferred_language.cpp | 260 if (preferredLocaleInfo.GetLanguage() != resourceLocaleInfo.GetLanguage()) { in IsMatched() 315 std::string preferredLanguage = preferredLanguageLocaleInfo.GetLanguage(); in GetPreferredLocale()
|
/base/global/i18n/frameworks/intl/include/ |
D | locale_info.h | 34 std::string GetLanguage() const;
|
/base/telephony/sms_mms/services/sms/include/cdma/ |
D | cdma_sms_message.h | 46 virtual int8_t GetLanguage() const;
|
/base/telephony/sms_mms/services/sms/cdma/ |
D | cdma_sms_receive_handler.cpp | 254 sendData.langType = static_cast<uint8_t>(message->GetLanguage()); in GetCBData() 264 sendData.langType = static_cast<uint8_t>(message->GetLanguage()); in GetCBData()
|