/third_party/typescript/tests/baselines/reference/ |
H A D | es2020IntlAPIs.js | 2 // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation 8 `${new Intl.DateTimeFormat(locale).format(date)} ${new Intl.NumberFormat(locale).format(count)}` 18 // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat 19 const rtf1 = new Intl.RelativeTimeFormat('en', { style: 'narrow' }); 27 const rtf2 = new Intl.RelativeTimeFormat('es', { numeric: 'auto' }); 32 // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames 33 const regionNamesInEnglish = new Intl.DisplayNames(['en'], { type: 'region' }); 34 const regionNamesInTraditionalChinese = new Intl.DisplayNames(['zh-Hant'], { type: 'region' }); 44 console.log(Intl [all...] |
H A D | DateTimeFormatAndNumberFormatES2021.js | 2 Intl.NumberFormat.prototype.formatRange 3 Intl.DateTimeFormat.prototype.formatRange 5 new Intl.NumberFormat().formatRange 6 new Intl.NumberFormat().formatRangeToParts 7 new Intl.DateTimeFormat().formatRange 8 new Intl.DateTimeFormat().formatRangeToParts
11 Intl.NumberFormat.prototype.formatRange;
12 Intl.DateTimeFormat.prototype.formatRange;
13 new Intl.NumberFormat().formatRange;
14 new Intl [all...] |
H A D | doYouNeedToChangeYourTargetLibraryES2016Plus.js | 11 const testIntlFormatToParts = new Intl.DateTimeFormat("en-US").formatToParts(); 20 const testIntlPluralRules = new Intl.PluralRules("ar-EG").select(0); 25 const testNumberFormatFormatToParts = new Intl.NumberFormat("en-US").formatToParts(); 59 var testIntlFormatToParts = new Intl.DateTimeFormat("en-US").formatToParts();
67 var testIntlPluralRules = new Intl.PluralRules("ar-EG").select(0);
72 var testNumberFormatFormatToParts = new Intl.NumberFormat("en-US").formatToParts();
|
H A D | bigintWithoutLib.js | 55 // Test Intl methods with new parameter type 56 new Intl.NumberFormat("fr").format(3000n); 57 new Intl.NumberFormat("fr").format(bigintVal); 109 // Test Intl methods with new parameter type
110 new Intl.NumberFormat("fr").format(3000n);
111 new Intl.NumberFormat("fr").format(bigintVal);
|
H A D | es2018IntlAPIs.js | 3 // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/PluralRules/supportedLocalesOf 6 console.log(Intl.PluralRules.supportedLocalesOf(locales, options).join(', '));
10 // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/PluralRules/supportedLocalesOf
13 console.log(Intl.PluralRules.supportedLocalesOf(locales, options).join(', '));
|
/third_party/node/test/parallel/ |
H A D | test-icu-env.js | 15 const spanish = new Intl.DateTimeFormat('es', { month: 'long' }); 77 assert.deepStrictEqual(Intl.getCanonicalLocales(localesISO639), locales); 83 'new Intl.DateTimeFormat(undefined, { month: "long" } ).format(new Date(9e8))' 87 'new Intl.DateTimeFormat(undefined, { month: "long" } ).format(new Date(9e8))' 144 runEnvOutside({ LANG: 'en' }, '["z", "ä"].sort(new Intl.Collator().compare)'), 148 runEnvOutside({ LANG: 'sv' }, '["z", "ä"].sort(new Intl.Collator().compare)'), 153 (LANG) => runEnvOutside({ LANG, TZ: 'Europe/Zurich' }, 'new Intl.DateTimeFormat().format(333333333333)') 167 locales.map((LANG) => runEnvOutside({ LANG }, 'new Intl.DisplayNames(undefined, { type: "region" }).of("CH")')), 180 locales.map((LANG) => runEnvOutside({ LANG }, 'new Intl.NumberFormat().format(275760.913)')), 193 locales.map((LANG) => runEnvOutside({ LANG }, 'new Intl [all...] |
H A D | test-intl.js | 53 `"Intl" object is NOT present but v8_enable_i18n_support is ${enablei18n}`; 55 common.skip('Intl tests because Intl object not present.'); 58 `"Intl" object is present but v8_enable_i18n_support is ${ 69 const dtf = new Intl.DateTimeFormat(['en'], { 78 'detailed Intl tests because English is not listed as supported.'); 104 const numberFormat = new Intl.NumberFormat(['en']).format(12345.67890); 109 common.printSkipMessage('detailed Intl tests because American English is ' + 115 const numberFormat = new Intl.NumberFormat('en-US', { style: 'percent' }); 125 const numberFormat = new Intl [all...] |
/third_party/node/deps/v8/src/objects/ |
H A D | intl-objects.cc | 197 const uint8_t* Intl::ToLatin1LowerTable() { return &kToLower[0]; } in ToLatin1LowerTable() 199 icu::UnicodeString Intl::ToICUUnicodeString(Isolate* isolate, in ToICUUnicodeString() 291 String Intl::ConvertOneByteToLower(String src, String dst) { in ConvertOneByteToLower() 336 MaybeHandle<String> Intl::ConvertToLower(Isolate* isolate, Handle<String> s) { in ConvertToLower() 364 return Handle<String>(Intl::ConvertOneByteToLower(*s, *result), isolate); in ConvertToLower() 367 MaybeHandle<String> Intl::ConvertToUpper(Isolate* isolate, Handle<String> s) { in ConvertToUpper() 431 std::string Intl::GetNumberingSystem(const icu::Locale& icu_locale) { in GetNumberingSystem() 465 MaybeHandle<String> Intl::ToString(Isolate* isolate, in ToString() 471 MaybeHandle<String> Intl::ToString(Isolate* isolate, in ToString() 474 return Intl in ToString() [all...] |
H A D | js-list-format.cc | 65 Intl::CanonicalizeLocaleList(isolate, locales); in New() 71 const char* service = "Intl.ListFormat"; in New() 82 Maybe<Intl::MatcherOption> maybe_locale_matcher = in New() 83 Intl::GetLocaleMatcher(isolate, options, service); in New() 87 Intl::MatcherOption matcher = maybe_locale_matcher.FromJust(); in New() 91 Maybe<Intl::ResolvedLocale> maybe_resolve_locale = in New() 92 Intl::ResolveLocale(isolate, JSListFormat::GetAvailableLocales(), in New() 98 Intl::ResolvedLocale r = maybe_resolve_locale.FromJust(); in New() 210 result.push_back(Intl::ToICUUnicodeString(isolate, item_str)); in ToUnicodeStringArray() 263 Intl in FormattedListToJSArray() [all...] |
H A D | js-segmenter.cc | 32 Intl::CanonicalizeLocaleList(isolate, locales); in New() 38 const char* service = "Intl.Segmenter"; in New() 48 Maybe<Intl::MatcherOption> maybe_locale_matcher = in New() 49 Intl::GetLocaleMatcher(isolate, options, service); in New() 51 Intl::MatcherOption matcher = maybe_locale_matcher.FromJust(); in New() 57 Maybe<Intl::ResolvedLocale> maybe_resolve_locale = in New() 58 Intl::ResolveLocale(isolate, JSSegmenter::GetAvailableLocales(), in New() 64 Intl::ResolvedLocale r = maybe_resolve_locale.FromJust(); in New() 126 // ecma402 #sec-Intl.Segmenter.prototype.resolvedOptions 172 return Intl in GetAvailableLocales() [all...] |
H A D | js-relative-time-format.cc | 74 Intl::CanonicalizeLocaleList(isolate, locales); in New() 81 const char* service = "Intl.RelativeTimeFormat"; in New() 90 Maybe<Intl::MatcherOption> maybe_locale_matcher = in New() 91 Intl::GetLocaleMatcher(isolate, options, service); in New() 93 Intl::MatcherOption matcher = maybe_locale_matcher.FromJust(); in New() 98 Maybe<bool> maybe_numberingSystem = Intl::GetNumberingSystem( in New() 113 Maybe<Intl::ResolvedLocale> maybe_resolve_locale = in New() 114 Intl::ResolveLocale(isolate, JSRelativeTimeFormat::GetAvailableLocales(), in New() 120 Intl::ResolvedLocale r = maybe_resolve_locale.FromJust(); in New() 134 Maybe<std::string> maybe_locale_str = Intl in New() [all...] |
H A D | js-collator.cc | 181 locale = Intl::ToLanguageTag(new_icu_locale).FromJust(); in ResolvedOptions() 184 locale = Intl::ToLanguageTag(icu_locale).FromJust(); in ResolvedOptions() 187 locale = Intl::ToLanguageTag(icu_locale).FromJust(); in ResolvedOptions() 283 Intl::CanonicalizeLocaleList(isolate, locales); in New() 305 Maybe<Intl::MatcherOption> maybe_locale_matcher = in New() 306 Intl::GetLocaleMatcher(isolate, options, service); in New() 308 Intl::MatcherOption matcher = maybe_locale_matcher.FromJust(); in New() 363 Maybe<Intl::ResolvedLocale> maybe_resolve_locale = in New() 364 Intl::ResolveLocale(isolate, JSCollator::GetAvailableLocales(), in New() 370 Intl in New() [all...] |
H A D | js-break-iterator.cc | 31 Intl::CanonicalizeLocaleList(isolate, locales); in New() 46 Maybe<Intl::MatcherOption> maybe_locale_matcher = in New() 47 Intl::GetLocaleMatcher(isolate, options, service); in New() 49 Intl::MatcherOption matcher = maybe_locale_matcher.FromJust(); in New() 51 Maybe<Intl::ResolvedLocale> maybe_resolve_locale = in New() 52 Intl::ResolveLocale(isolate, JSV8BreakIterator::GetAvailableLocales(), in New() 58 Intl::ResolvedLocale r = maybe_resolve_locale.FromJust(); in New() 130 // Since the developer calling the Intl.v8BreakIterator already know the type, in GetType() 199 Intl::SetTextToBreakIterator(isolate, text, break_iterator); in AdoptText() 244 return Intl in GetAvailableLocales() [all...] |
H A D | js-plural-rules.cc | 71 Intl::CanonicalizeLocaleList(isolate, locales); in New() 78 const char* service = "Intl.PluralRules"; in New() 86 Maybe<Intl::MatcherOption> maybe_locale_matcher = in New() 87 Intl::GetLocaleMatcher(isolate, options, service); in New() 89 Intl::MatcherOption matcher = maybe_locale_matcher.FromJust(); in New() 108 Maybe<Intl::ResolvedLocale> maybe_resolve_locale = in New() 109 Intl::ResolveLocale(isolate, JSPluralRules::GetAvailableLocales(), in New() 115 Intl::ResolvedLocale r = maybe_resolve_locale.FromJust(); in New() 140 Maybe<Intl::NumberFormatDigitOptions> maybe_digit_options = in New() 141 Intl in New() [all...] |
H A D | js-number-format.cc | 107 // prefix with Intl as IntlRoundingMode 258 std::set<std::string> sanctioned(Intl::SanctionedSimpleUnits()); in CreateUnitMap() 827 const Intl::NumberFormatDigitOptions& digit_options) { in SetDigitOptionsToFormatterV2() 834 if (digit_options.rounding_type == Intl::RoundingType::kMorePrecision) { in SetDigitOptionsToFormatterV2() 851 const Intl::NumberFormatDigitOptions& digit_options, int rounding_increment, in SetDigitOptionsToFormatterV3() 862 case Intl::RoundingType::kSignificantDigits: in SetDigitOptionsToFormatterV3() 867 case Intl::RoundingType::kFractionDigits: in SetDigitOptionsToFormatterV3() 872 case Intl::RoundingType::kMorePrecision: in SetDigitOptionsToFormatterV3() 875 case Intl::RoundingType::kLessPrecision: in SetDigitOptionsToFormatterV3() 903 const Intl in SetDigitOptionsToFormatter() [all...] |
H A D | js-display-names.cc | 251 if (!Intl::IsWellFormedCurrency(code_str)) { 272 if (!Intl::IsWellFormedCalendar(code_str)) { 392 // ecma402 #sec-Intl.DisplayNames 397 const char* service = "Intl.DisplayNames"; in New() 403 Intl::CanonicalizeLocaleList(isolate, locales); in New() 420 Maybe<Intl::MatcherOption> maybe_locale_matcher = in New() 421 Intl::GetLocaleMatcher(isolate, options, service); in New() 425 Intl::MatcherOption matcher = maybe_locale_matcher.FromJust(); in New() 427 // ecma402/#sec-Intl.DisplayNames-internal-slots in New() 433 Maybe<Intl in New() [all...] |
H A D | js-date-time-format.cc | 518 isolate, timezone_value, Intl::ToString(isolate, canonical_time_zone), in TimeZoneId() 600 std::string numbering_system = Intl::GetNumberingSystem(*icu_locale); in ResolvedOptions() 761 return Intl::ToString(isolate, result); in FormatDateTime() 1038 Intl::LegacyUnwrapReceiver(isolate, format_holder, constructor, in UnwrapDateTimeFormat() 1070 if (!Intl::IsValidTimeZoneName(*tz)) return std::unique_ptr<icu::TimeZone>(); in CreateTimeZone() 1516 Intl::CanonicalizeLocaleList(isolate, locales); in New() 1531 Maybe<Intl::MatcherOption> maybe_locale_matcher = in New() 1532 Intl::GetLocaleMatcher(isolate, options, service); in New() 1534 Intl::MatcherOption locale_matcher = maybe_locale_matcher.FromJust(); in New() 1546 if (!Intl in New() [all...] |
H A D | js-segments.cc | 37 Intl::SetTextToBreakIterator(isolate, string, break_iterator); in Create() 129 isolate, segment, Intl::ToString(isolate, string, start_index, end_index), in CreateSegmentDataObject() 148 Intl::ToString(isolate, string), JSObject); in CreateSegmentDataObject()
|
H A D | js-locale.cc | 503 return Intl::ToJSArray(isolate, unicode_key, enumeration.get(), removes, 524 MaybeHandle<JSArray> Intl::AvailableCalendars(Isolate* isolate) { 533 isolate, "collations", "co", icu_locale, Intl::RemoveCollation, true, 617 numbering_system = Intl::GetNumberingSystem(icu_locale); 663 return Intl::ToJSArray(isolate, nullptr, enumeration.get(), nullptr, true); 802 std::string base_name = Intl::ToLanguageTag(icu_locale).FromJust(); 838 return Intl::ToLanguageTag(*icu_locale).FromJust();
|
H A D | js-number-format.h | 88 const Intl::NumberFormatDigitOptions& digit_options,
|
/third_party/node/lib/internal/ |
H A D | freeze_intrinsics.js | 132 Intl, 357 if (typeof Intl !== 'undefined') { 359 Intl.Collator.prototype, 360 Intl.DateTimeFormat.prototype, 361 Intl.ListFormat.prototype, 362 Intl.NumberFormat.prototype, 363 Intl.PluralRules.prototype, 364 Intl.RelativeTimeFormat.prototype, 366 ArrayPrototypePush(intrinsics, Intl);
|
/third_party/node/deps/v8/src/builtins/ |
H A D | builtins-intl.cc | 45 RETURN_RESULT_OR_FAILURE(isolate, Intl::ConvertToUpper(isolate, string)); in BUILTIN() 56 Intl::Normalize(isolate, string, form_input)); in BUILTIN() 65 isolate, Intl::SupportedLocalesOf( in BUILTIN() 66 isolate, "Intl.v8BreakIterator.supportedLocalesOf", in BUILTIN() 76 isolate, Intl::SupportedLocalesOf( in BUILTIN() 77 isolate, "Intl.NumberFormat.supportedLocalesOf", in BUILTIN() 82 const char* const method_name = "Intl.NumberFormat.prototype.formatToParts"; in BUILTIN() 92 Intl::ToIntlMathematicalValueAsNumberBigIntOrString(isolate, value)); in BUILTIN() 107 "Intl.DateTimeFormat.prototype.resolvedOptions"; in BUILTIN() 127 isolate, Intl in BUILTIN() [all...] |
H A D | builtins-bigint.cc | 137 Intl::NumberToLocaleString(isolate, x, args.atOrUndefined(isolate, 1), in BUILTIN()
|
/third_party/node/deps/v8/src/runtime/ |
H A D | runtime-intl.cc | 60 RETURN_RESULT_OR_FAILURE(isolate, Intl::ConvertToLower(isolate, s)); in RUNTIME_FUNCTION() 68 RETURN_RESULT_OR_FAILURE(isolate, Intl::ConvertToUpper(isolate, s)); in RUNTIME_FUNCTION()
|
/third_party/node/lib/internal/main/ |
H A D | print_help.js | 72 ['NODE_ICU_DATA', { helpText: 'data path for ICU (Intl object) data' +
|