Home | History | Annotate | Download | only in src

Lines Matching full:intl

10  * Intl object is a single object that has some named properties,
13 $Object.defineProperty(global, "Intl", { enumerable: false, value: (function() {
15 var Intl = {};
940 * Constructs Intl.Collator object given optional locales and options
945 %AddNamedProperty(Intl, 'Collator', function() {
949 if (!this || this === Intl) {
951 return new Intl.Collator(locales, options);
963 %AddNamedProperty(Intl.Collator.prototype, 'resolvedOptions', function() {
970 'or on a object that is not Intl.Collator.');
989 %FunctionSetName(Intl.Collator.prototype.resolvedOptions, 'resolvedOptions');
990 %FunctionRemovePrototype(Intl.Collator.prototype.resolvedOptions);
991 %SetNativeFlag(Intl.Collator.prototype.resolvedOptions);
1000 %AddNamedProperty(Intl.Collator, 'supportedLocalesOf', function(locales) {
1009 %FunctionSetName(Intl.Collator.supportedLocalesOf, 'supportedLocalesOf');
1010 %FunctionRemovePrototype(Intl.Collator.supportedLocalesOf);
1011 %SetNativeFlag(Intl.Collator.supportedLocalesOf);
1030 addBoundMethod(Intl.Collator, 'compare', compare, 2);
1167 * Constructs Intl.NumberFormat object given optional locales and options
1172 %AddNamedProperty(Intl, 'NumberFormat', function() {
1176 if (!this || this === Intl) {
1178 return new Intl.NumberFormat(locales, options);
1190 %AddNamedProperty(Intl.NumberFormat.prototype, 'resolvedOptions', function() {
1197 ' or on a object that is not Intl.NumberFormat.');
1234 %FunctionSetName(Intl.NumberFormat.prototype.resolvedOptions,
1236 %FunctionRemovePrototype(Intl.NumberFormat.prototype.resolvedOptions);
1237 %SetNativeFlag(Intl.NumberFormat.prototype.resolvedOptions);
1246 %AddNamedProperty(Intl.NumberFormat, 'supportedLocalesOf', function(locales) {
1255 %FunctionSetName(Intl.NumberFormat.supportedLocalesOf, 'supportedLocalesOf');
1256 %FunctionRemovePrototype(Intl.NumberFormat.supportedLocalesOf);
1257 %SetNativeFlag(Intl.NumberFormat.supportedLocalesOf);
1283 addBoundMethod(Intl.NumberFormat, 'format', formatNumber, 1);
1284 addBoundMethod(Intl.NumberFormat, 'v8Parse', parseNumber, 1);
1560 * Constructs Intl.DateTimeFormat object given optional locales and options
1565 %AddNamedProperty(Intl, 'DateTimeFormat', function() {
1569 if (!this || this === Intl) {
1571 return new Intl.DateTimeFormat(locales, options);
1583 %AddNamedProperty(Intl.DateTimeFormat.prototype, 'resolvedOptions', function() {
1590 'on a object that is not Intl.DateTimeFormat.');
1627 %FunctionSetName(Intl.DateTimeFormat.prototype.resolvedOptions,
1629 %FunctionRemovePrototype(Intl.DateTimeFormat.prototype.resolvedOptions);
1630 %SetNativeFlag(Intl.DateTimeFormat.prototype.resolvedOptions);
1639 %AddNamedProperty(Intl.DateTimeFormat, 'supportedLocalesOf', function(locales) {
1648 %FunctionSetName(Intl.DateTimeFormat.supportedLocalesOf, 'supportedLocalesOf');
1649 %FunctionRemovePrototype(Intl.DateTimeFormat.supportedLocalesOf);
1650 %SetNativeFlag(Intl.DateTimeFormat.supportedLocalesOf);
1688 addBoundMethod(Intl.DateTimeFormat, 'format', formatDate, 0);
1689 addBoundMethod(Intl.DateTimeFormat, 'v8Parse', parseDate, 1);
1766 * Constructs Intl.v8BreakIterator object given optional locales and options
1771 %AddNamedProperty(Intl, 'v8BreakIterator', function() {
1775 if (!this || this === Intl) {
1777 return new Intl.v8BreakIterator(locales, options);
1789 %AddNamedProperty(Intl.v8BreakIterator.prototype, 'resolvedOptions',
1797 'on a object that is not Intl.v8BreakIterator.');
1811 %FunctionSetName(Intl.v8BreakIterator.prototype.resolvedOptions,
1813 %FunctionRemovePrototype(Intl.v8BreakIterator.prototype.resolvedOptions);
1814 %SetNativeFlag(Intl.v8BreakIterator.prototype.resolvedOptions);
1823 %AddNamedProperty(Intl.v8BreakIterator, 'supportedLocalesOf',
1833 %FunctionSetName(Intl.v8BreakIterator.supportedLocalesOf, 'supportedLocalesOf');
1834 %FunctionRemovePrototype(Intl.v8BreakIterator.supportedLocalesOf);
1835 %SetNativeFlag(Intl.v8BreakIterator.supportedLocalesOf);
1880 addBoundMethod(Intl.v8BreakIterator, 'adoptText', adoptText, 1);
1881 addBoundMethod(Intl.v8BreakIterator, 'first', first, 0);
1882 addBoundMethod(Intl.v8BreakIterator, 'next', next, 0);
1883 addBoundMethod(Intl.v8BreakIterator, 'current', current, 0);
1884 addBoundMethod(Intl.v8BreakIterator, 'breakType', breakType, 0);
1886 // Save references to Intl objects and methods we use, for added security.
1888 'collator': Intl.Collator,
1889 'numberformat': Intl.NumberFormat,
1890 'dateformatall': Intl.DateTimeFormat,
1891 'dateformatdate': Intl.DateTimeFormat,
1892 'dateformattime': Intl.DateTimeFormat
2108 return Intl;