2 * Copyright 2013 The Closure Compiler Authors
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
18 * @fileoverview Definitions for the JS Internationalization API as defined in
19 * http://www.ecma-international.org/ecma-402/1.0/
28 * NOTE: this API is not from ecma402 and is subject to change.
29 * @param {string|Array.<string>=} opt_locales
30 * @param {{type: (string|undefined)}=}
34 Intl.v8BreakIterator = function(opt_locales, opt_options) {};
37 * @param {string} text
39 Intl.v8BreakIterator.prototype.adoptText = function(text) {};
44 Intl.v8BreakIterator.prototype.breakType = function() {};
49 Intl.v8BreakIterator.prototype.current = function() {};
54 Intl.v8BreakIterator.prototype.first = function() {};
59 Intl.v8BreakIterator.prototype.next = function() {};
63 * @param {string|Array.<string>=} opt_locales
64 * @param {{usage: (string|undefined), localeMatcher: (string|undefined),
65 * sensitivity: (string|undefined), ignorePunctuation: (boolean|undefined),
66 * numeric: (boolean|undefined), caseFirst: (string|undefined)}=}
69 Intl.Collator = function(opt_locales, opt_options) {};
72 * @param {Array.<string>} locales
73 * @param {{localeMatcher: (string|undefined)}=} opt_options
75 Intl.Collator.supportedLocalesOf = function(locales, opt_options) {};
78 * @param {string} arg1
79 * @param {string} arg2
82 Intl.Collator.prototype.compare = function(arg1, arg2) {};
85 * @return {{locale: string, usage: string, sensitivity: string,
86 * ignorePunctuation: boolean, collation: string, numeric: boolean,
89 Intl.Collator.prototype.resolvedOptions = function() {};
93 * @param {string|Array.<string>=} opt_locales
94 * @param {{localeMatcher: (string|undefined), useGrouping: (boolean|undefined),
95 * numberingSystem: (string|undefined), style: (string|undefined),
96 * currency: (string|undefined), currencyDisplay: (string|undefined),
97 * minimumIntegerDigits: (number|undefined),
98 * minimumFractionDigits: (number|undefined),
99 * maximumFractionDigits: (number|undefined),
100 * minimumSignificantDigits: (number|undefined),
101 * maximumSignificantDigits: (number|undefined)}=}
104 Intl.NumberFormat = function(opt_locales, opt_options) {};
107 * @param {Array.<string>} locales
108 * @param {{localeMatcher: (string|undefined)}=} opt_options
110 Intl.NumberFormat.supportedLocalesOf = function(locales, opt_options) {};
113 * @param {number} num
116 Intl.NumberFormat.prototype.format = function(num) {};
119 * @return {{locale: string, numberingSystem: string, style: string,
120 * currency: (string|undefined), currencyDisplay: (string|undefined),
121 * minimumIntegerDigits: number, minimumFractionDigits: number,
122 * maximumFractionDigits: number, minimumSignificantDigits: number,
123 * maximumSignificantDigits: number, useGrouping: boolean}}
125 Intl.NumberFormat.prototype.resolvedOptions = function() {};
129 * @param {string|Array.<string>=} opt_locales
130 * @param {{localeMatcher: (string|undefined),
131 * formatMatcher: (string|undefined), calendar: (string|undefined),
132 * numberingSystem: (string|undefined), tz: (string|undefined),
133 * weekday: (string|undefined), era: (string|undefined),
134 * year: (string|undefined), month: (string|undefined),
135 * day: (string|undefined), hour: (string|undefined),
136 * minute: (string|undefined), second: (string|undefined),
137 * timeZoneName: (string|undefined), hour12: (boolean|undefined)}=}
140 Intl.DateTimeFormat = function(opt_locales, opt_options) {};
143 * @param {Array.<string>} locales
144 * @param {{localeMatcher: string}=} opt_options
146 Intl.DateTimeFormat.supportedLocalesOf = function(locales, opt_options) {};
149 * @param {number} date
152 Intl.DateTimeFormat.prototype.format = function(date) {};
155 * @return {{locale: string, calendar: string, numberingSystem: string,
156 * timeZone: (string|undefined), weekday: (string|undefined),
157 * era: (string|undefined), year: (string|undefined),
158 * month: (string|undefined), day: (string|undefined),
159 * hour: (string|undefined), minute: (string|undefined),
160 * second: (string|undefined), timeZoneName: (string|undefined),
161 * hour12: (boolean|undefined)}}
163 Intl.DateTimeFormat.prototype.resolvedOptions = function() {};