Lines Matching refs:language

12  * See the License for the specific language governing permissions and
39 LocaleProxy(const char* language, const char* countryOrRegion, const char* variant, const char* keywordsAndValues)
40 : instance(language, countryOrRegion, variant, keywordsAndValues)
145 void GetLocalJsonObject(InternalResource::ResourceId id, std::string language, std::unique_ptr<JsonValue>& indexJson,
164 if (indexJson->Contains(language) && indexJson->GetValue(language)->IsObject()) {
165 json = indexJson->GetValue(language);
179 void Localization::SetLocaleImpl(const std::string& language, const std::string& countryOrRegion,
182 locale_ = std::make_unique<LocaleProxy>(language.c_str(), countryOrRegion.c_str(), "", keywordsAndValues.c_str());
199 languageTag_ = language;
221 LOGI("SetLocale language tag: %{public}s, select language: %{public}s", languageTag_.c_str(),
373 std::string language = locale_->instance.getLanguage();
374 OrderResult orderResult = sequence.GetDateOrder(language);
512 auto language = locale_->instance.getLanguage();
513 auto widthType = isShortType ? (strcmp(language, "zh") == 0 || strcmp(language, "bo") == 0)
759 std::string language = locale_->instance.getLanguage();
760 if (language == "zh") {
761 language = language + "-" + std::string(locale_->instance.getCountry());
763 auto iter = LANGUAGE_CODE_MAP.find(language);
765 language = iter->second;
767 LOGI("[alphabet] Localization::GetLetters. language: %{private}s", language.c_str());
769 if (!indexLetterJson->Contains(language) || !indexLetterJson->GetValue(language)->IsObject()) {
772 lettersSet = indexLetterJson->GetValue(language);
808 auto language = selectLanguage_;
809 auto iter = LANGUAGE_CODE_MAP.find(language);
811 language = iter->second;
813 GetLocalJsonObject(InternalResource::ResourceId::ENTRY_JSON, language, g_indexJsonEntry, localJsonEntry);
815 LOGW("read JsonObject fail. language: %{public}s.", selectLanguage_.c_str());
845 auto language = selectLanguage_;
846 auto iter = LANGUAGE_CODE_MAP.find(language);
848 language = iter->second;
850 GetLocalJsonObject(InternalResource::ResourceId::ERRORINFO_JSON, language, g_indexJsonError, localJsonError);
852 LOGW("read JsonObject fail. language: %{public}s.", selectLanguage_.c_str());
870 const std::vector<std::string>& Localization::GetLanguageList(const std::string& language)
949 int64_t list = BinarySearchFindIndex(multiLanguageMap, ArraySize(multiLanguageMap), language.c_str());
970 void Localization::SetLocale(const std::string& language, const std::string& countryOrRegion, const std::string& script,
994 instance->SetLocaleImpl(language, countryOrRegion, script, selectLanguage, keywordsAndValues);
997 std::string Localization::ComputeScript(const std::string& language, const std::string& region)
999 icu::Locale locale(language.c_str(), region.c_str());
1009 const std::string& localeTag, std::string& language, std::string& script, std::string& region, bool needAddSubtags)
1019 language = locale.getLanguage();