Lines Matching refs:Intl
197 const uint8_t* Intl::ToLatin1LowerTable() { return &kToLower[0]; }
199 icu::UnicodeString Intl::ToICUUnicodeString(Isolate* isolate,
291 String Intl::ConvertOneByteToLower(String src, String dst) {
336 MaybeHandle<String> Intl::ConvertToLower(Isolate* isolate, Handle<String> s) {
364 return Handle<String>(Intl::ConvertOneByteToLower(*s, *result), isolate);
367 MaybeHandle<String> Intl::ConvertToUpper(Isolate* isolate, Handle<String> s) {
431 std::string Intl::GetNumberingSystem(const icu::Locale& icu_locale) {
465 MaybeHandle<String> Intl::ToString(Isolate* isolate,
471 MaybeHandle<String> Intl::ToString(Isolate* isolate,
474 return Intl::ToString(isolate, string.tempSubStringBetween(begin, end));
494 // overflow, until Intl::AddElement can handle exceptions.
504 void Intl::AddElement(Isolate* isolate, Handle<JSArray> array, int index,
510 void Intl::AddElement(Isolate* isolate, Handle<JSArray> array, int index,
580 std::set<std::string> Intl::BuildLocaleSet(
607 Maybe<std::string> Intl::ToLanguageTag(const icu::Locale& locale) {
618 MaybeHandle<Object> Intl::LegacyUnwrapReceiver(Isolate* isolate,
631 // 2. a. Let new_receiver be ? Get(receiver, %Intl%.[[FallbackSymbol]]).
729 Maybe<std::string> maybe_to_language_tag = Intl::ToLanguageTag(icu_locale);
775 Maybe<std::vector<std::string>> Intl::CanonicalizeLocaleList(
869 MaybeHandle<String> Intl::StringLocaleConvertCase(Isolate* isolate,
917 Intl::CompareStringsOptions Intl::CompareStringsOptionsFor(
961 template Intl::CompareStringsOptions Intl::CompareStringsOptionsFor(
963 template Intl::CompareStringsOptions Intl::CompareStringsOptionsFor(
966 base::Optional<int> Intl::StringLocaleCompare(
986 return Intl::CompareStrings(isolate, *cached_icu_collator, string1,
1006 return Intl::CompareStrings(isolate, *icu_collator, string1, string2,
1399 const uint8_t* Intl::AsciiCollationWeightsL1() {
1404 const uint8_t* Intl::AsciiCollationWeightsL3() {
1409 const int Intl::kAsciiCollationWeightsLength = kCollationWeightsLength;
1412 int Intl::CompareStrings(Isolate* isolate, const icu::Collator& icu_collator,
1450 Intl::ToICUUnicodeString(isolate, string1, processed_until);
1452 Intl::ToICUUnicodeString(isolate, string2, processed_until);
1459 MaybeHandle<String> Intl::NumberToLocaleString(Isolate* isolate,
1510 Maybe<Intl::NumberFormatDigitOptions> Intl::SetNumberFormatDigitOptions(
1514 Intl::NumberFormatDigitOptions digit_options;
1994 Maybe<Intl::MatcherOption> maybe_locale_matcher =
1995 Intl::GetLocaleMatcher(isolate, options_obj, method_name);
1997 Intl::MatcherOption matcher = maybe_locale_matcher.FromJust();
2002 if (matcher == Intl::MatcherOption::kBestFit &&
2022 MaybeHandle<JSArray> Intl::GetCanonicalLocales(Isolate* isolate,
2044 return Intl::ToJSArray(isolate, "co", enumeration.get(),
2045 Intl::RemoveCollation, true);
2127 return Intl::ToJSArray(
2148 return Intl::ToJSArray(isolate, nullptr, enumeration.get(), nullptr, true);
2153 std::set<std::string> sanctioned(Intl::SanctionedSimpleUnits());
2167 MaybeHandle<JSArray> Intl::SupportedValuesOf(Isolate* isolate,
2177 return Intl::AvailableCalendars(isolate);
2215 // ECMA 402 Intl.*.supportedLocalesOf
2216 MaybeHandle<JSObject> Intl::SupportedLocalesOf(
2261 bool Intl::IsValidCollation(const icu::Locale& locale,
2268 bool Intl::IsWellFormedCalendar(const std::string& value) {
2273 bool Intl::IsWellFormedCurrency(const std::string& currency) {
2277 bool Intl::IsValidCalendar(const icu::Locale& locale,
2282 bool Intl::IsValidNumberingSystem(const std::string& value) {
2341 is_valid_value = Intl::IsValidCalendar(*icu_locale, bcp47_value);
2343 is_valid_value = Intl::IsValidCollation(*icu_locale, bcp47_value);
2361 is_valid_value = Intl::IsValidNumberingSystem(bcp47_value);
2401 // as part of Intl::ResolveLocale.
2437 Maybe<Intl::ResolvedLocale> Intl::ResolveLocale(
2442 if (matcher == Intl::MatcherOption::kBestFit &&
2450 MAYBE_RETURN(maybe_icu_locale, Nothing<Intl::ResolvedLocale>());
2455 std::string canonicalized_locale = Intl::ToLanguageTag(icu_locale).FromJust();
2460 Intl::ResolvedLocale{canonicalized_locale, icu_locale, extensions});
2463 Handle<Managed<icu::UnicodeString>> Intl::SetTextToBreakIterator(
2467 Intl::ToICUUnicodeString(isolate, text).clone());
2477 MaybeHandle<String> Intl::Normalize(Isolate* isolate, Handle<String> string,
2541 return Intl::ToString(isolate, result);
2633 base::TimezoneCache* Intl::CreateTimeZoneCache() {
2638 Maybe<Intl::MatcherOption> Intl::GetLocaleMatcher(Isolate* isolate,
2641 return GetStringOption<Intl::MatcherOption>(
2643 {Intl::MatcherOption::kBestFit, Intl::MatcherOption::kLookup},
2644 Intl::MatcherOption::kBestFit);
2647 Maybe<bool> Intl::GetNumberingSystem(Isolate* isolate,
2670 const std::set<std::string>& Intl::GetAvailableLocales() {
2671 static base::LazyInstance<Intl::AvailableLocales<>>::type available_locales =
2685 const std::set<std::string>& Intl::GetAvailableLocalesForDateFormat() {
2686 static base::LazyInstance<Intl::AvailableLocales<CheckCalendar>>::type
2693 Handle<String> Intl::NumberFieldToType(Isolate* isolate,
2745 // A helper function to convert the FormattedValue for several Intl objects.
2746 MaybeHandle<String> Intl::FormattedToString(
2753 return Intl::ToString(isolate, result);
2756 MaybeHandle<JSArray> Intl::ToJSArray(
2779 bool Intl::RemoveCollation(const char* collation) {
2784 std::set<std::string> Intl::SanctionedSimpleUnits() {
2814 MaybeHandle<String> Intl::CanonicalizeTimeZoneName(Isolate* isolate,
2828 return Intl::ToString(isolate, canonical);
2831 bool Intl::IsValidTimeZoneName(Isolate* isolate, Handle<String> id) {
2839 bool Intl::IsValidTimeZoneName(const icu::TimeZone& tz) {
2846 std::string Intl::TimeZoneIdFromIndex(int32_t index) {
2864 Maybe<bool> Intl::GetTimeZoneIndex(Isolate* isolate, Handle<String> identifier,
2898 MaybeHandle<Object> Intl::ToIntlMathematicalValueAsNumberBigIntOrString(
2919 Intl::FormatRangeSourceTracker::FormatRangeSourceTracker() {
2923 void Intl::FormatRangeSourceTracker::Add(int32_t field, int32_t start,
2930 Intl::FormatRangeSource Intl::FormatRangeSourceTracker::GetSource(
2941 bool Intl::FormatRangeSourceTracker::FieldContains(int32_t field, int32_t start,
2948 Handle<String> Intl::SourceString(Isolate* isolate, FormatRangeSource source) {