Lines Matching refs:locale

38     // 6. Let locale be ? OrdinaryCreateFromConstructor(NewTarget, %LocalePrototype%, internalSlotsList).
42 JSHandle<JSLocale> locale =JSHandle<JSLocale>::Cast(newObject);
76 JSHandle<JSLocale> result = JSLocale::InitializeLocale(thread, locale, localeString, optionsObj);
91 THROW_TYPE_ERROR_AND_RETURN(thread, "not locale", JSTaggedValue::Exception());
95 JSHandle<JSLocale> locale = JSHandle<JSLocale>::Cast(loc);
96 icu::Locale source(*(locale->GetIcuLocale()));
123 THROW_TYPE_ERROR_AND_RETURN(thread, "not locale", JSTaggedValue::Exception());
128 JSHandle<JSLocale> locale = JSHandle<JSLocale>::Cast(loc);
129 icu::Locale source(*(locale->GetIcuLocale()));
157 THROW_TYPE_ERROR_AND_RETURN(thread, "not locale", JSTaggedValue::Exception());
173 THROW_TYPE_ERROR_AND_RETURN(thread, "not locale", JSTaggedValue::Exception());
175 // 3. Let locale be loc.[[Locale]].
176 // 4. Return the substring of locale corresponding to the unicode_language_id production.
177 JSHandle<JSLocale> locale = JSHandle<JSLocale>::Cast(loc);
178 icu::Locale icuLocale = icu::Locale::createFromName(locale->GetIcuLocale()->getBaseName());
193 THROW_TYPE_ERROR_AND_RETURN(thread, "not locale", JSTaggedValue::Exception());
196 JSHandle<JSLocale> locale = JSHandle<JSLocale>::Cast(loc);
197 JSTaggedValue calendar = JSLocale::NormalizeKeywordValue(thread, locale, "ca");
211 THROW_TYPE_ERROR_AND_RETURN(thread, "not locale", JSTaggedValue::Exception());
214 JSHandle<JSLocale> locale = JSHandle<JSLocale>::Cast(loc);
215 JSTaggedValue caseFirst = JSLocale::NormalizeKeywordValue(thread, locale, "kf");
228 THROW_TYPE_ERROR_AND_RETURN(thread, "not locale", JSTaggedValue::Exception());
231 JSHandle<JSLocale> locale = JSHandle<JSLocale>::Cast(loc);
232 JSTaggedValue collation = JSLocale::NormalizeKeywordValue(thread, locale, "co");
245 THROW_TYPE_ERROR_AND_RETURN(thread, "not locale", JSTaggedValue::Exception());
248 JSHandle<JSLocale> locale = JSHandle<JSLocale>::Cast(loc);
249 JSTaggedValue hourCycle = JSLocale::NormalizeKeywordValue(thread, locale, "hc");
263 THROW_TYPE_ERROR_AND_RETURN(thread, "not locale", JSTaggedValue::Exception());
266 JSHandle<JSLocale> locale = JSHandle<JSLocale>::Cast(loc);
267 icu::Locale *icuLocale = locale->GetIcuLocale();
283 THROW_TYPE_ERROR_AND_RETURN(thread, "not locale", JSTaggedValue::Exception());
286 JSHandle<JSLocale> locale = JSHandle<JSLocale>::Cast(loc);
287 JSTaggedValue numberingSystem = JSLocale::NormalizeKeywordValue(thread, locale, "nu");
301 THROW_TYPE_ERROR_AND_RETURN(thread, "not locale", JSTaggedValue::Exception());
303 // 3. Let locale be loc.[[Locale]].
304 JSHandle<JSLocale> locale = JSHandle<JSLocale>::Cast(loc);
305 // 4. Assert: locale matches the unicode_locale_id production.
306 // 5. Return the substring of locale corresponding to the unicode_language_subtag production of the
309 CString language = locale->GetIcuLocale()->getLanguage();
327 THROW_TYPE_ERROR_AND_RETURN(thread, "not locale", JSTaggedValue::Exception());
329 // 3. Let locale be loc.[[Locale]].
330 JSHandle<JSLocale> locale = JSHandle<JSLocale>::Cast(loc);
332 // 4. Assert: locale matches the unicode_locale_id production.
333 // 5. If the unicode_language_id production of locale does not contain the ["-" unicode_script_subtag] sequence,
335 // 6. Return the substring of locale corresponding to the unicode_script_subtag production of the
338 CString script = locale->GetIcuLocale()->getScript();
358 THROW_TYPE_ERROR_AND_RETURN(thread, "not locale", JSTaggedValue::Exception());
360 // 3. Let locale be loc.[[Locale]].
361 JSHandle<JSLocale> locale = JSHandle<JSLocale>::Cast(loc);
362 // 4. Assert: locale matches the unicode_locale_id production.
363 // 5. If the unicode_language_id production of locale does not contain the ["-" unicode_region_subtag] sequence,
365 // 6. Return the substring of locale corresponding to the unicode_region_subtag production of the
367 CString region = locale->GetIcuLocale()->getCountry();