Skip to content

Commit 537afda

Browse files
authored
Editorial: Prefix names of intrinsics with "Intl"
#843
1 parent 494be7a commit 537afda

12 files changed

+149
-149
lines changed

spec/collator.html

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ <h1>Collator Objects</h1>
44
<emu-clause id="sec-the-intl-collator-constructor">
55
<h1>The Intl.Collator Constructor</h1>
66
<p>
7-
The Intl.Collator constructor is the <dfn>%Collator%</dfn> intrinsic object and a standard built-in property of the Intl object. Behaviour common to all service constructor properties of the Intl object is specified in <emu-xref href="#sec-internal-slots"></emu-xref>.
7+
The Intl.Collator constructor is the <dfn>%Intl.Collator%</dfn> intrinsic object and a standard built-in property of the Intl object. Behaviour common to all service constructor properties of the Intl object is specified in <emu-xref href="#sec-internal-slots"></emu-xref>.
88
</p>
99

1010
<emu-clause id="sec-intl.collator">
@@ -16,11 +16,11 @@ <h1>Intl.Collator ( [ _locales_ [ , _options_ ] ] )</h1>
1616
<emu-alg>
1717
1. If NewTarget is *undefined*, let _newTarget_ be the active function object, else let _newTarget_ be NewTarget.
1818
1. Let _internalSlotsList_ be &laquo; [[InitializedCollator]], [[Locale]], [[Usage]], [[Sensitivity]], [[IgnorePunctuation]], [[Collation]], [[BoundCompare]] &raquo;.
19-
1. If %Collator%.[[RelevantExtensionKeys]] contains *"kn"*, then
19+
1. If %Intl.Collator%.[[RelevantExtensionKeys]] contains *"kn"*, then
2020
1. Append [[Numeric]] to _internalSlotsList_.
21-
1. If %Collator%.[[RelevantExtensionKeys]] contains *"kf"*, then
21+
1. If %Intl.Collator%.[[RelevantExtensionKeys]] contains *"kf"*, then
2222
1. Append [[CaseFirst]] to _internalSlotsList_.
23-
1. Let _collator_ be ? OrdinaryCreateFromConstructor(_newTarget_, *"%Collator.prototype%"*, _internalSlotsList_).
23+
1. Let _collator_ be ? OrdinaryCreateFromConstructor(_newTarget_, *"%Intl.Collator.prototype%"*, _internalSlotsList_).
2424
1. Return ? InitializeCollator(_collator_, _locales_, _options_).
2525
</emu-alg>
2626
</emu-clause>
@@ -43,9 +43,9 @@ <h1>
4343
1. Let _usage_ be ? GetOption(_options_, *"usage"*, ~string~, &laquo; *"sort"*, *"search"* &raquo;, *"sort"*).
4444
1. Set _collator_.[[Usage]] to _usage_.
4545
1. If _usage_ is *"sort"*, then
46-
1. Let _localeData_ be %Collator%.[[SortLocaleData]].
46+
1. Let _localeData_ be %Intl.Collator%.[[SortLocaleData]].
4747
1. Else,
48-
1. Let _localeData_ be %Collator%.[[SearchLocaleData]].
48+
1. Let _localeData_ be %Intl.Collator%.[[SearchLocaleData]].
4949
1. Let _opt_ be a new Record.
5050
1. Let _matcher_ be ? GetOption(_options_, *"localeMatcher"*, ~string~, &laquo; *"lookup"*, *"best fit"* &raquo;, *"best fit"*).
5151
1. Set _opt_.[[localeMatcher]] to _matcher_.
@@ -59,8 +59,8 @@ <h1>
5959
1. Set _opt_.[[kn]] to _numeric_.
6060
1. Let _caseFirst_ be ? GetOption(_options_, *"caseFirst"*, ~string~, &laquo; *"upper"*, *"lower"*, *"false"* &raquo;, *undefined*).
6161
1. Set _opt_.[[kf]] to _caseFirst_.
62-
1. Let _relevantExtensionKeys_ be %Collator%.[[RelevantExtensionKeys]].
63-
1. Let _r_ be ResolveLocale(%Collator%.[[AvailableLocales]], _requestedLocales_, _opt_, _relevantExtensionKeys_, _localeData_).
62+
1. Let _relevantExtensionKeys_ be %Intl.Collator%.[[RelevantExtensionKeys]].
63+
1. Let _r_ be ResolveLocale(%Intl.Collator%.[[AvailableLocales]], _requestedLocales_, _opt_, _relevantExtensionKeys_, _localeData_).
6464
1. Set _collator_.[[Locale]] to _r_.[[locale]].
6565
1. Set _collation_ to _r_.[[co]].
6666
1. If _collation_ is *null*, set _collation_ to *"default"*.
@@ -100,7 +100,7 @@ <h1>Properties of the Intl.Collator Constructor</h1>
100100
<h1>Intl.Collator.prototype</h1>
101101

102102
<p>
103-
The value of `Intl.Collator.prototype` is %Collator.prototype%.
103+
The value of `Intl.Collator.prototype` is %Intl.Collator.prototype%.
104104
</p>
105105

106106
<p>
@@ -116,7 +116,7 @@ <h1>Intl.Collator.supportedLocalesOf ( _locales_ [ , _options_ ] )</h1>
116116
</p>
117117

118118
<emu-alg>
119-
1. Let _availableLocales_ be %Collator%.[[AvailableLocales]].
119+
1. Let _availableLocales_ be %Intl.Collator%.[[AvailableLocales]].
120120
1. Let _requestedLocales_ be ? CanonicalizeLocaleList(_locales_).
121121
1. Return ? SupportedLocales(_availableLocales_, _requestedLocales_, _options_).
122122
</emu-alg>
@@ -149,14 +149,14 @@ <h1>Internal slots</h1>
149149
<h1>Properties of the Intl.Collator Prototype Object</h1>
150150

151151
<p>
152-
The Intl.Collator prototype object is itself an ordinary object. <dfn>%Collator.prototype%</dfn> is not an Intl.Collator instance and does not have an [[InitializedCollator]] internal slot or any of the other internal slots of Intl.Collator instance objects.
152+
The Intl.Collator prototype object is itself an ordinary object. <dfn>%Intl.Collator.prototype%</dfn> is not an Intl.Collator instance and does not have an [[InitializedCollator]] internal slot or any of the other internal slots of Intl.Collator instance objects.
153153
</p>
154154

155155
<emu-clause id="sec-intl.collator.prototype.constructor">
156156
<h1>Intl.Collator.prototype.constructor</h1>
157157

158158
<p>
159-
The initial value of `Intl.Collator.prototype.constructor` is %Collator%.
159+
The initial value of `Intl.Collator.prototype.constructor` is %Intl.Collator%.
160160
</p>
161161
</emu-clause>
162162

@@ -316,7 +316,7 @@ <h1>Intl.Collator.prototype.resolvedOptions ( )</h1>
316316
1. Let _v_ be the value of _collator_'s internal slot whose name is the Internal Slot value of the current row.
317317
1. If the current row has an Extension Key value, then
318318
1. Let _extensionKey_ be the Extension Key value of the current row.
319-
1. If %Collator%.[[RelevantExtensionKeys]] does not contain _extensionKey_, then
319+
1. If %Intl.Collator%.[[RelevantExtensionKeys]] does not contain _extensionKey_, then
320320
1. Set _v_ to *undefined*.
321321
1. If _v_ is not *undefined*, then
322322
1. Perform ! CreateDataPropertyOrThrow(_options_, _p_, _v_).
@@ -377,7 +377,7 @@ <h1>Intl.Collator.prototype.resolvedOptions ( )</h1>
377377
<h1>Properties of Intl.Collator Instances</h1>
378378

379379
<p>
380-
Intl.Collator instances are ordinary objects that inherit properties from %Collator.prototype%.
380+
Intl.Collator instances are ordinary objects that inherit properties from %Intl.Collator.prototype%.
381381
</p>
382382

383383
<p>

spec/conventions.html

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -42,64 +42,64 @@ <h1>Well-Known Intrinsic Objects</h1>
4242
</tr>
4343
</thead>
4444
<tr>
45-
<td>%Collator%</td>
45+
<td>%Intl%</td>
46+
<td>`Intl`</td>
47+
<td>The `Intl` object (<emu-xref href="#intl-object"></emu-xref>)</td>
48+
</tr>
49+
<tr>
50+
<td>%Intl.Collator%</td>
4651
<td>`Intl.Collator`</td>
4752
<td>The `Intl.Collator` constructor (<emu-xref href="#sec-the-intl-collator-constructor"></emu-xref>)</td>
4853
</tr>
4954
<tr>
50-
<td>%DateTimeFormat%</td>
55+
<td>%Intl.DateTimeFormat%</td>
5156
<td>`Intl.DateTimeFormat`</td>
5257
<td>The `Intl.DateTimeFormat` constructor (<emu-xref href="#sec-intl-datetimeformat-constructor"></emu-xref>)</td>
5358
</tr>
5459
<tr>
55-
<td>%DisplayNames%</td>
60+
<td>%Intl.DisplayNames%</td>
5661
<td>`Intl.DisplayNames`</td>
5762
<td>The `Intl.DisplayNames` constructor (<emu-xref href="#sec-intl-displaynames-constructor"></emu-xref>)</td>
5863
</tr>
5964
<tr>
60-
<td>%Intl%</td>
61-
<td>`Intl`</td>
62-
<td>The `Intl` object (<emu-xref href="#intl-object"></emu-xref>)</td>
63-
</tr>
64-
<tr>
65-
<td>%ListFormat%</td>
65+
<td>%Intl.ListFormat%</td>
6666
<td>`Intl.ListFormat`</td>
6767
<td>The `Intl.ListFormat` constructor (<emu-xref href="#sec-intl-listformat-constructor"></emu-xref>)</td>
6868
</tr>
6969
<tr>
70-
<td>%Locale%</td>
70+
<td>%Intl.Locale%</td>
7171
<td>`Intl.Locale`</td>
7272
<td>The `Intl.Locale` constructor (<emu-xref href="#sec-intl-locale-constructor"></emu-xref>)</td>
7373
</tr>
7474
<tr>
75-
<td>%NumberFormat%</td>
75+
<td>%Intl.NumberFormat%</td>
7676
<td>`Intl.NumberFormat`</td>
7777
<td>The `Intl.NumberFormat` constructor (<emu-xref href="#sec-intl-numberformat-constructor"></emu-xref>)</td>
7878
</tr>
7979
<tr>
80-
<td>%PluralRules%</td>
80+
<td>%Intl.PluralRules%</td>
8181
<td>`Intl.PluralRules`</td>
8282
<td>The `Intl.PluralRules` constructor (<emu-xref href="#sec-intl-pluralrules-constructor"></emu-xref>)</td>
8383
</tr>
8484
<tr>
85-
<td>%RelativeTimeFormat%</td>
85+
<td>%Intl.RelativeTimeFormat%</td>
8686
<td>`Intl.RelativeTimeFormat`</td>
8787
<td>The `Intl.RelativeTimeFormat` constructor (<emu-xref href="#sec-intl-relativetimeformat-constructor"></emu-xref>)</td>
8888
</tr>
8989
<tr>
90-
<td>%Segmenter%</td>
90+
<td>%Intl.Segmenter%</td>
9191
<td>`Intl.Segmenter`</td>
9292
<td>The `Intl.Segmenter` constructor (<emu-xref href="#sec-intl-segmenter-constructor"></emu-xref>)</td>
9393
</tr>
9494
<tr>
95-
<td>%SegmentIteratorPrototype%</td>
95+
<td>%IntlSegmentIteratorPrototype%</td>
9696
<td></td>
97-
<td>The prototype of Segment Iterator objects (<emu-xref href="#sec-%segmentiteratorprototype%-object"></emu-xref>)</td>
97+
<td>The prototype of Segment Iterator objects (<emu-xref href="#sec-%intlsegmentiteratorprototype%-object"></emu-xref>)</td>
9898
</tr>
9999
<tr>
100-
<td>%SegmentsPrototype%</td>
100+
<td>%IntlSegmentsPrototype%</td>
101101
<td></td>
102-
<td>The prototype of Segments objects (<emu-xref href="#sec-%segmentsprototype%-object"></emu-xref>)</td>
102+
<td>The prototype of Segments objects (<emu-xref href="#sec-%intlsegmentsprototype%-object"></emu-xref>)</td>
103103
</tr>
104104
</table>
105105
</emu-table>

spec/datetimeformat.html

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ <h1>DateTimeFormat Objects</h1>
55
<h1>The Intl.DateTimeFormat Constructor</h1>
66

77
<p>
8-
The Intl.DateTimeFormat constructor is the <dfn>%DateTimeFormat%</dfn> intrinsic object and a standard built-in property of the Intl object. Behaviour common to all service constructor properties of the Intl object is specified in <emu-xref href="#sec-internal-slots"></emu-xref>.
8+
The Intl.DateTimeFormat constructor is the <dfn>%Intl.DateTimeFormat%</dfn> intrinsic object and a standard built-in property of the Intl object. Behaviour common to all service constructor properties of the Intl object is specified in <emu-xref href="#sec-internal-slots"></emu-xref>.
99
</p>
1010

1111
<emu-clause id="sec-intl.datetimeformat">
@@ -36,7 +36,7 @@ <h1>
3636
<dl class="header">
3737
</dl>
3838
<emu-alg>
39-
1. If _newTarget_ is *undefined* and ? OrdinaryHasInstance(%DateTimeFormat%, _this_) is *true*, then
39+
1. If _newTarget_ is *undefined* and ? OrdinaryHasInstance(%Intl.DateTimeFormat%, _this_) is *true*, then
4040
1. Perform ? DefinePropertyOrThrow(_this_, %Intl%.[[FallbackSymbol]], PropertyDescriptor{ [[Value]]: _dateTimeFormat_, [[Writable]]: *false*, [[Enumerable]]: *false*, [[Configurable]]: *false* }).
4141
1. Return _this_.
4242
1. Return _dateTimeFormat_.
@@ -60,7 +60,7 @@ <h1>
6060
</dl>
6161

6262
<emu-alg>
63-
1. Let _dateTimeFormat_ be ? OrdinaryCreateFromConstructor(_newTarget_, *"%DateTimeFormat.prototype%"*, &laquo; [[InitializedDateTimeFormat]], [[Locale]], [[Calendar]], [[NumberingSystem]], [[TimeZone]], [[Weekday]], [[Era]], [[Year]], [[Month]], [[Day]], [[DayPeriod]], [[Hour]], [[Minute]], [[Second]], [[FractionalSecondDigits]], [[TimeZoneName]], [[HourCycle]], [[DateStyle]], [[TimeStyle]], [[Pattern]], [[RangePatterns]], [[BoundFormat]] &raquo;).
63+
1. Let _dateTimeFormat_ be ? OrdinaryCreateFromConstructor(_newTarget_, *"%Intl.DateTimeFormat.prototype%"*, &laquo; [[InitializedDateTimeFormat]], [[Locale]], [[Calendar]], [[NumberingSystem]], [[TimeZone]], [[Weekday]], [[Era]], [[Year]], [[Month]], [[Day]], [[DayPeriod]], [[Hour]], [[Minute]], [[Second]], [[FractionalSecondDigits]], [[TimeZoneName]], [[HourCycle]], [[DateStyle]], [[TimeStyle]], [[Pattern]], [[RangePatterns]], [[BoundFormat]] &raquo;).
6464
1. Let _requestedLocales_ be ? CanonicalizeLocaleList(_locales_).
6565
1. Set _options_ to ? CoerceOptionsToObject(_options_).
6666
1. Let _opt_ be a new Record.
@@ -79,8 +79,8 @@ <h1>
7979
1. If _hour12_ is not *undefined*, then
8080
1. Set _hourCycle_ to *null*.
8181
1. Set _opt_.[[hc]] to _hourCycle_.
82-
1. Let _localeData_ be %DateTimeFormat%.[[LocaleData]].
83-
1. Let _r_ be ResolveLocale(%DateTimeFormat%.[[AvailableLocales]], _requestedLocales_, _opt_, %DateTimeFormat%.[[RelevantExtensionKeys]], _localeData_).
82+
1. Let _localeData_ be %Intl.DateTimeFormat%.[[LocaleData]].
83+
1. Let _r_ be ResolveLocale(%Intl.DateTimeFormat%.[[AvailableLocales]], _requestedLocales_, _opt_, %Intl.DateTimeFormat%.[[RelevantExtensionKeys]], _localeData_).
8484
1. Set _dateTimeFormat_.[[Locale]] to _r_.[[locale]].
8585
1. Let _resolvedCalendar_ be _r_.[[ca]].
8686
1. Set _dateTimeFormat_.[[Calendar]] to _resolvedCalendar_.
@@ -214,7 +214,7 @@ <h1>Properties of the Intl.DateTimeFormat Constructor</h1>
214214
<h1>Intl.DateTimeFormat.prototype</h1>
215215

216216
<p>
217-
The value of `Intl.DateTimeFormat.prototype` is %DateTimeFormat.prototype%.
217+
The value of `Intl.DateTimeFormat.prototype` is %Intl.DateTimeFormat.prototype%.
218218
</p>
219219
<p>
220220
This property has the attributes { [[Writable]]: *false*, [[Enumerable]]: *false*, [[Configurable]]: *false* }.
@@ -229,7 +229,7 @@ <h1>Intl.DateTimeFormat.supportedLocalesOf ( _locales_ [ , _options_ ] )</h1>
229229
</p>
230230

231231
<emu-alg>
232-
1. Let _availableLocales_ be %DateTimeFormat%.[[AvailableLocales]].
232+
1. Let _availableLocales_ be %Intl.DateTimeFormat%.[[AvailableLocales]].
233233
1. Let _requestedLocales_ be ? CanonicalizeLocaleList(_locales_).
234234
1. Return ? SupportedLocales(_availableLocales_, _requestedLocales_, _options_).
235235
</emu-alg>
@@ -471,14 +471,14 @@ <h1>Internal slots</h1>
471471
<h1>Properties of the Intl.DateTimeFormat Prototype Object</h1>
472472

473473
<p>
474-
The Intl.DateTimeFormat prototype object is itself an ordinary object. <dfn>%DateTimeFormat.prototype%</dfn> is not an Intl.DateTimeFormat instance and does not have an [[InitializedDateTimeFormat]] internal slot or any of the other internal slots of Intl.DateTimeFormat instance objects.
474+
The Intl.DateTimeFormat prototype object is itself an ordinary object. <dfn>%Intl.DateTimeFormat.prototype%</dfn> is not an Intl.DateTimeFormat instance and does not have an [[InitializedDateTimeFormat]] internal slot or any of the other internal slots of Intl.DateTimeFormat instance objects.
475475
</p>
476476

477477
<emu-clause id="sec-intl.datetimeformat.prototype.constructor">
478478
<h1>Intl.DateTimeFormat.prototype.constructor</h1>
479479

480480
<p>
481-
The initial value of `Intl.DateTimeFormat.prototype.constructor` is %DateTimeFormat%.
481+
The initial value of `Intl.DateTimeFormat.prototype.constructor` is %Intl.DateTimeFormat%.
482482
</p>
483483
</emu-clause>
484484

@@ -728,7 +728,7 @@ <h1>Intl.DateTimeFormat.prototype.resolvedOptions ( )</h1>
728728
<h1>Properties of Intl.DateTimeFormat Instances</h1>
729729

730730
<p>
731-
Intl.DateTimeFormat instances are ordinary objects that inherit properties from %DateTimeFormat.prototype%.
731+
Intl.DateTimeFormat instances are ordinary objects that inherit properties from %Intl.DateTimeFormat.prototype%.
732732
</p>
733733

734734
<p>
@@ -842,7 +842,7 @@ <h1>
842842
</h1>
843843
<dl class="header">
844844
<dt>description</dt>
845-
<dd>_styles_ is a record from %DateTimeFormat%.[[LocaleData]].[[&lt;_locale_&gt;]].[[styles]].[[&lt;_calendar_&gt;]] for some locale _locale_ and calendar _calendar_. It returns the appropriate format record for date time formatting based on the parameters.</dd>
845+
<dd>_styles_ is a record from %Intl.DateTimeFormat%.[[LocaleData]].[[&lt;_locale_&gt;]].[[styles]].[[&lt;_calendar_&gt;]] for some locale _locale_ and calendar _calendar_. It returns the appropriate format record for date time formatting based on the parameters.</dd>
846846
</dl>
847847
<emu-alg>
848848
1. Assert: _dateStyle_ is not *undefined* or _timeStyle_ is not *undefined*.
@@ -995,17 +995,17 @@ <h1>
995995
1. Let _locale_ be _dateTimeFormat_.[[Locale]].
996996
1. Let _nfOptions_ be OrdinaryObjectCreate(*null*).
997997
1. Perform ! CreateDataPropertyOrThrow(_nfOptions_, *"useGrouping"*, *false*).
998-
1. Let _nf_ be ! Construct(%NumberFormat%, &laquo; _locale_, _nfOptions_ &raquo;).
998+
1. Let _nf_ be ! Construct(%Intl.NumberFormat%, &laquo; _locale_, _nfOptions_ &raquo;).
999999
1. Let _nf2Options_ be OrdinaryObjectCreate(*null*).
10001000
1. Perform ! CreateDataPropertyOrThrow(_nf2Options_, *"minimumIntegerDigits"*, *2*<sub>𝔽</sub>).
10011001
1. Perform ! CreateDataPropertyOrThrow(_nf2Options_, *"useGrouping"*, *false*).
1002-
1. Let _nf2_ be ! Construct(%NumberFormat%, &laquo; _locale_, _nf2Options_ &raquo;).
1002+
1. Let _nf2_ be ! Construct(%Intl.NumberFormat%, &laquo; _locale_, _nf2Options_ &raquo;).
10031003
1. Let _fractionalSecondDigits_ be _dateTimeFormat_.[[FractionalSecondDigits]].
10041004
1. If _fractionalSecondDigits_ is not *undefined*, then
10051005
1. Let _nf3Options_ be OrdinaryObjectCreate(*null*).
10061006
1. Perform ! CreateDataPropertyOrThrow(_nf3Options_, *"minimumIntegerDigits"*, 𝔽(_fractionalSecondDigits_)).
10071007
1. Perform ! CreateDataPropertyOrThrow(_nf3Options_, *"useGrouping"*, *false*).
1008-
1. Let _nf3_ be ! Construct(%NumberFormat%, &laquo; _locale_, _nf3Options_ &raquo;).
1008+
1. Let _nf3_ be ! Construct(%Intl.NumberFormat%, &laquo; _locale_, _nf3Options_ &raquo;).
10091009
1. Let _tm_ be ToLocalTime(ℤ(ℝ(_x_) &times; 10<sup>6</sup>), _dateTimeFormat_.[[Calendar]], _dateTimeFormat_.[[TimeZone]]).
10101010
1. Let _result_ be a new empty List.
10111011
1. For each Record { [[Type]], [[Value]] } _patternPart_ of _patternParts_, do
@@ -1373,12 +1373,12 @@ <h1>
13731373
<dl class="header">
13741374
<dt>description</dt>
13751375
<dd>
1376-
It returns the DateTimeFormat instance of its input object, which is either the value itself or a value associated with it by %DateTimeFormat% according to the normative optional constructor mode of <emu-xref href="#legacy-constructor"></emu-xref>.
1376+
It returns the DateTimeFormat instance of its input object, which is either the value itself or a value associated with it by %Intl.DateTimeFormat% according to the normative optional constructor mode of <emu-xref href="#legacy-constructor"></emu-xref>.
13771377
</dd>
13781378
</dl>
13791379
<emu-alg>
13801380
1. If Type(_dtf_) is not Object, throw a *TypeError* exception.
1381-
1. If _dtf_ does not have an [[InitializedDateTimeFormat]] internal slot and ? OrdinaryHasInstance(%DateTimeFormat%, _dtf_) is *true*, then
1381+
1. If _dtf_ does not have an [[InitializedDateTimeFormat]] internal slot and ? OrdinaryHasInstance(%Intl.DateTimeFormat%, _dtf_) is *true*, then
13821382
1. Return ? Get(_dtf_, %Intl%.[[FallbackSymbol]]).
13831383
1. Return _dtf_.
13841384
</emu-alg>

0 commit comments

Comments
 (0)