Home | History | Annotate | Download | only in src

Lines Matching full:intl

32  * Intl object is a single object that has some named properties,
35 $Object.defineProperty(global, "Intl", { enumerable: false, value: (function() {
39 var Intl = {};
975 * Constructs Intl.Collator object given optional locales and options
980 %SetProperty(Intl, 'Collator', function() {
984 if (!this || this === Intl) {
986 return new Intl.Collator(locales, options);
998 %SetProperty(Intl.Collator.prototype, 'resolvedOptions', function() {
1006 'or on a object that is not Intl.Collator.');
1025 %FunctionSetName(Intl.Collator.prototype.resolvedOptions, 'resolvedOptions');
1026 %FunctionRemovePrototype(Intl.Collator.prototype.resolvedOptions);
1027 %SetNativeFlag(Intl.Collator.prototype.resolvedOptions);
1036 %SetProperty(Intl.Collator, 'supportedLocalesOf', function(locales) {
1045 %FunctionSetName(Intl.Collator.supportedLocalesOf, 'supportedLocalesOf');
1046 %FunctionRemovePrototype(Intl.Collator.supportedLocalesOf);
1047 %SetNativeFlag(Intl.Collator.supportedLocalesOf);
1065 addBoundMethod(Intl.Collator, 'compare', compare, 2);
1204 * Constructs Intl.NumberFormat object given optional locales and options
1209 %SetProperty(Intl, 'NumberFormat', function() {
1213 if (!this || this === Intl) {
1215 return new Intl.NumberFormat(locales, options);
1227 %SetProperty(Intl.NumberFormat.prototype, 'resolvedOptions', function() {
1235 ' or on a object that is not Intl.NumberFormat.');
1272 %FunctionSetName(Intl.NumberFormat.prototype.resolvedOptions,
1274 %FunctionRemovePrototype(Intl.NumberFormat.prototype.resolvedOptions);
1275 %SetNativeFlag(Intl.NumberFormat.prototype.resolvedOptions);
1284 %SetProperty(Intl.NumberFormat, 'supportedLocalesOf', function(locales) {
1293 %FunctionSetName(Intl.NumberFormat.supportedLocalesOf, 'supportedLocalesOf');
1294 %FunctionRemovePrototype(Intl.NumberFormat.supportedLocalesOf);
1295 %SetNativeFlag(Intl.NumberFormat.supportedLocalesOf);
1319 addBoundMethod(Intl.NumberFormat, 'format', formatNumber, 1);
1320 addBoundMethod(Intl.NumberFormat, 'v8Parse', parseNumber, 1);
1600 * Constructs Intl.DateTimeFormat object given optional locales and options
1605 %SetProperty(Intl, 'DateTimeFormat', function() {
1609 if (!this || this === Intl) {
1611 return new Intl.DateTimeFormat(locales, options);
1623 %SetProperty(Intl.DateTimeFormat.prototype, 'resolvedOptions', function() {
1631 'on a object that is not Intl.DateTimeFormat.');
1668 %FunctionSetName(Intl.DateTimeFormat.prototype.resolvedOptions,
1670 %FunctionRemovePrototype(Intl.DateTimeFormat.prototype.resolvedOptions);
1671 %SetNativeFlag(Intl.DateTimeFormat.prototype.resolvedOptions);
1680 %SetProperty(Intl.DateTimeFormat, 'supportedLocalesOf', function(locales) {
1689 %FunctionSetName(Intl.DateTimeFormat.supportedLocalesOf, 'supportedLocalesOf');
1690 %FunctionRemovePrototype(Intl.DateTimeFormat.supportedLocalesOf);
1691 %SetNativeFlag(Intl.DateTimeFormat.supportedLocalesOf);
1727 addBoundMethod(Intl.DateTimeFormat, 'format', formatDate, 0);
1728 addBoundMethod(Intl.DateTimeFormat, 'v8Parse', parseDate, 1);
1806 * Constructs Intl.v8BreakIterator object given optional locales and options
1811 %SetProperty(Intl, 'v8BreakIterator', function() {
1815 if (!this || this === Intl) {
1817 return new Intl.v8BreakIterator(locales, options);
1829 %SetProperty(Intl.v8BreakIterator.prototype, 'resolvedOptions', function() {
1837 'on a object that is not Intl.v8BreakIterator.');
1851 %FunctionSetName(Intl.v8BreakIterator.prototype.resolvedOptions,
1853 %FunctionRemovePrototype(Intl.v8BreakIterator.prototype.resolvedOptions);
1854 %SetNativeFlag(Intl.v8BreakIterator.prototype.resolvedOptions);
1863 %SetProperty(Intl.v8BreakIterator, 'supportedLocalesOf', function(locales) {
1872 %FunctionSetName(Intl.v8BreakIterator.supportedLocalesOf, 'supportedLocalesOf');
1873 %FunctionRemovePrototype(Intl.v8BreakIterator.supportedLocalesOf);
1874 %SetNativeFlag(Intl.v8BreakIterator.supportedLocalesOf);
1918 addBoundMethod(Intl.v8BreakIterator, 'adoptText', adoptText, 1);
1919 addBoundMethod(Intl.v8BreakIterator, 'first', first, 0);
1920 addBoundMethod(Intl.v8BreakIterator, 'next', next, 0);
1921 addBoundMethod(Intl.v8BreakIterator, 'current', current, 0);
1922 addBoundMethod(Intl.v8BreakIterator, 'breakType', breakType, 0);
1924 // Save references to Intl objects and methods we use, for added security.
1926 'collator': Intl.Collator,
1927 'numberformat': Intl.NumberFormat,
1928 'dateformatall': Intl.DateTimeFormat,
1929 'dateformatdate': Intl.DateTimeFormat,
1930 'dateformattime': Intl.DateTimeFormat
2112 return Intl;