Home
last modified time | relevance | path

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

12

/base/global/resource_management_lite/frameworks/resmgr_lite/src/
Dlocale_matcher.cpp242 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 …]
Dglobal.cpp92 || 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()
Dres_config_impl.cpp35 …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()
Dres_locale.cpp134 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()
Dhap_manager.cpp58 this->resConfig_->GetResLocale()->GetLanguage() == nullptr) { in GetPluralRulesAndSelect()
62 std::string language = this->resConfig_->GetResLocale()->GetLanguage(); in GetPluralRulesAndSelect()
/base/global/resource_management/frameworks/resmgr/src/
Dlocale_matcher.cpp242 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 …]
Dres_locale.cpp149 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/
Dlocale_info_test.cpp187 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/
Dlocale_module.cpp24 static char *GetLanguage(void) in GetLanguage() function
66 char *lang = GetLanguage(); in GetLocale()
/base/global/i18n/frameworks/intl/test/fuzztest/localeinfo_fuzzer/
Dlocaleinfo_fuzzer.cpp32 locale->GetLanguage(); in DoSomethingInterestingWithMyAPI()
/base/account/os_account/frameworks/appaccount/extension/src/
Dauthorization_extension.cpp35 switch (runtime->GetLanguage()) { in Create()
/base/inputmethod/imf/frameworks/kits/extension/src/
Dinputmethod_extension.cpp34 switch (runtime->GetLanguage()) { in Create()
/base/print/print_fwk/frameworks/kits/extension/src/
Dprint_extension.cpp35 switch (runtime->GetLanguage()) { in Create()
/base/useriam/user_auth_framework/frameworks/js/napi/user_auth_extension/module_loader/
Duser_auth_extension.cpp31 switch (runtime->GetLanguage()) { in Create()
/base/theme/wallpaper_mgr/frameworks/kits/extension/src/
Dwallpaper_extension_ability.cpp34 switch (runtime->GetLanguage()) { in Create()
/base/customization/enterprise_device_management/framework/extension/src/
Denterprise_admin_extension.cpp32 switch (runtime->GetLanguage()) { in Create()
/base/notification/common_event_service/frameworks/extension/src/
Dstatic_subscriber_extension.cpp33 switch (runtime->GetLanguage()) { in Create()
/base/global/resource_management_lite/frameworks/resmgr_lite/include/
Dres_locale.h40 const char *GetLanguage() const;
/base/global/i18n_lite/interfaces/kits/i18n/include/
Dlocale_info.h137 const char *GetLanguage() const;
/base/global/resource_management/frameworks/resmgr/include/
Dres_locale.h44 const char *GetLanguage() const;
/base/global/i18n_lite/frameworks/i18n/src/
Dlocale_info.cpp95 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/
Dpreferred_language.cpp260 if (preferredLocaleInfo.GetLanguage() != resourceLocaleInfo.GetLanguage()) { in IsMatched()
315 std::string preferredLanguage = preferredLanguageLocaleInfo.GetLanguage(); in GetPreferredLocale()
/base/global/i18n/frameworks/intl/include/
Dlocale_info.h34 std::string GetLanguage() const;
/base/telephony/sms_mms/services/sms/include/cdma/
Dcdma_sms_message.h46 virtual int8_t GetLanguage() const;
/base/telephony/sms_mms/services/sms/cdma/
Dcdma_sms_receive_handler.cpp254 sendData.langType = static_cast<uint8_t>(message->GetLanguage()); in GetCBData()
264 sendData.langType = static_cast<uint8_t>(message->GetLanguage()); in GetCBData()

12