• Home
  • Raw
  • Download

Lines Matching refs:locales

272 function supportedLocalesOf(service, locales, options) {  argument
294 var requestedLocales = initializeLocaleList(locales);
611 var locales = %GetLanguageTagVariants([original, resolved]);
612 if (locales[0].maximized !== locales[1].maximized) {
617 var resolvedBase = new $RegExp('^' + locales[1].base);
618 return resolved.replace(resolvedBase, locales[0].base);
730 function initializeLocaleList(locales) { argument
732 if (locales === undefined) {
737 if (typeof locales === 'string') {
738 seen.push(canonicalizeLanguageTag(locales));
742 var o = ToObject(locales);
860 function initializeCollator(collator, locales, options) { argument
886 var locale = resolveLocale('collator', locales, options);
946 var locales = %_Arguments(0);
951 return new Intl.Collator(locales, options);
954 return initializeCollator(ToObject(this), locales, options);
1000 %AddNamedProperty(Intl.Collator, 'supportedLocalesOf', function(locales) { argument
1005 return supportedLocalesOf('collator', locales, %_Arguments(1));
1066 function initializeNumberFormat(numberFormat, locales, options) { argument
1077 var locale = resolveLocale('numberformat', locales, options);
1173 var locales = %_Arguments(0);
1178 return new Intl.NumberFormat(locales, options);
1181 return initializeNumberFormat(ToObject(this), locales, options);
1246 %AddNamedProperty(Intl.NumberFormat, 'supportedLocalesOf', function(locales) { argument
1251 return supportedLocalesOf('numberformat', locales, %_Arguments(1));
1488 function initializeDateTimeFormat(dateFormat, locales, options) { argument
1498 var locale = resolveLocale('dateformat', locales, options);
1566 var locales = %_Arguments(0);
1571 return new Intl.DateTimeFormat(locales, options);
1574 return initializeDateTimeFormat(ToObject(this), locales, options);
1639 %AddNamedProperty(Intl.DateTimeFormat, 'supportedLocalesOf', function(locales) { argument
1644 return supportedLocalesOf('dateformat', locales, %_Arguments(1));
1730 function initializeBreakIterator(iterator, locales, options) { argument
1746 var locale = resolveLocale('breakiterator', locales, options);
1772 var locales = %_Arguments(0);
1777 return new Intl.v8BreakIterator(locales, options);
1780 return initializeBreakIterator(ToObject(this), locales, options);
1824 function(locales) { argument
1829 return supportedLocalesOf('breakiterator', locales, %_Arguments(1));
1911 function cachedOrNewService(service, locales, options, defaults) { argument
1913 if (locales === undefined && options === undefined) {
1915 defaultObjects[service] = new savedObjects[service](locales, useOptions);
1919 return new savedObjects[service](locales, useOptions);
1937 var locales = %_Arguments(1);
1939 var collator = cachedOrNewService('collator', locales, options);
1999 var locales = %_Arguments(0);
2001 var numberFormat = cachedOrNewService('numberformat', locales, options);
2016 function toLocaleDateTime(date, locales, options, required, defaults, service) { argument
2028 cachedOrNewService(service, locales, options, internalOptions);
2045 var locales = %_Arguments(0);
2048 this, locales, options, 'any', 'all', 'dateformatall');
2070 var locales = %_Arguments(0);
2073 this, locales, options, 'date', 'date', 'dateformatdate');
2095 var locales = %_Arguments(0);
2098 this, locales, options, 'time', 'time', 'dateformattime');