You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* upgrading ecmarkup
* preparing the spec to rename internal slots to start with uppercase character. this change allows a clear separation between internal slot names and properties/fields used across the spec as in [[<name>]]. This change does not change any semantic or any logic, it only adds internal slot column in table 4 and table 2 to have a clear distintion between property and internal slot names.
* editorial: alignment with 262 by naming all internal slots to start with uppercase characters. This change does not change any semantic or any logic.
Several steps in the algorithm use values from the following table, which associates Unicode locale extension keys, property names, types, and allowable values:
18
+
Several steps in the algorithm use values from the following table, which associates Unicode locale extension keys, internal slots, property names, types, and allowable values:
19
19
</p>
20
20
21
21
<emu-tableid="table-collator-options">
22
-
<emu-caption>Collator options settable through both extension keys and options properties</emu-caption>
22
+
<emu-caption>Collator options settable through extension keys, internal slots and options properties</emu-caption>
The value of the [[availableLocales]] internal slot is implementation defined within the constraints described in 9.1. The value of the [[relevantExtensionKeys]] internal slot is a List that must include the element *"co"*, may include any or all of the elements *"kn"* and *"kf"*, and must not include any other elements.
174
+
The value of the [[AvailableLocales]] internal slot is implementation defined within the constraints described in 9.1. The value of the [[RelevantExtensionKeys]] internal slot is a List that must include the element *"co"*, may include any or all of the elements *"kn"* and *"kf"*, and must not include any other elements.
173
175
</p>
174
176
175
177
<emu-note>
176
178
Unicode Technical Standard 35 describes ten locale extension keys that are relevant to collation: "co" for collator usage and specializations, "ka" for alternate handling, "kb" for backward second level weight, "kc" for case level, "kn" for numeric, "kh" for hiragana quaternary, "kk" for normalization, "kf" for case first, "kr" for reordering, "ks" for collation strength, and "vt" for variable top. Collator, however, requires that the usage is specified through the usage property of the options object, alternate handling through the ignorePunctuation property of the options object, and case level and the strength through the sensitivity property of the options object. The "co" key in the language tag is supported only for collator specializations, and the keys "kb", "kh", "kk", "kr", and "vt" are not allowed in this version of the Internationalization API. Support for the remaining keys is implementation dependent.
177
179
</emu-note>
178
180
179
181
<p>
180
-
The values of the [[sortLocaleData]] and [[searchLocaleData]] internal slots are implementation defined within the constraints described in 9.1 and the following additional constraints:
182
+
The values of the [[SortLocaleData]] and [[SearchLocaleData]] internal slots are implementation defined within the constraints described in 9.1 and the following additional constraints:
181
183
</p>
182
184
183
185
<ul>
184
-
<li>The first element of [[sortLocaleData]][locale].co and [[searchLocaleData]][locale].co must be *null* for all locale values.</li>
185
-
<li>The values *"standard"* and *"search"* must not be used as elements in any [[sortLocaleData]][locale].co and [[searchLocaleData]][locale].co array.</li>
186
-
<li>[[searchLocaleData]][locale] must have a sensitivity property with a String value equal to *"base"*, *"accent"*, *"case"*, or *"variant"* for all locale values.</li>
186
+
<li>The first element of [[SortLocaleData]][locale].co and [[SearchLocaleData]][locale].co must be *null* for all locale values.</li>
187
+
<li>The values *"standard"* and *"search"* must not be used as elements in any [[SortLocaleData]][locale].co and [[SearchLocaleData]][locale].co array.</li>
188
+
<li>[[SearchLocaleData]][locale] must have a sensitivity property with a String value equal to *"base"*, *"accent"*, *"case"*, or *"variant"* for all locale values.</li>
187
189
</ul>
188
190
189
191
</emu-clause>
@@ -197,7 +199,7 @@ <h1>Properties of the Intl.Collator Prototype Object</h1>
197
199
</p>
198
200
199
201
<p>
200
-
In the following descriptions of functions that are properties or [[Get]] attributes of properties of %CollatorPrototype%, the phrase "this Collator object" refers to the object that is the *this* value for the invocation of the function; a *TypeError* exception is thrown if the this value is not an object or an object that does not have an [[initializedCollator]] internal slot with value *true*.
202
+
In the following descriptions of functions that are properties or [[Get]] attributes of properties of %CollatorPrototype%, the phrase "this Collator object" refers to the object that is the *this* value for the invocation of the function; a *TypeError* exception is thrown if the this value is not an object or an object that does not have an [[InitializedCollator]] internal slot with value *true*.
This function provides access to the locale and collation options computed during initialization of the object.
321
323
</p>
322
324
<p>
323
-
The function returns a new object whose properties and attributes are set as if constructed by an object literal assigning to each of the following properties the value of the corresponding internal slot of this Collator object (see <emu-xrefhref="#sec-properties-of-intl-collator-instances"></emu-xref>): locale, usage, sensitivity, ignorePunctuation, collation, as well as those properties shown in <emu-xrefhref="#table-collator-options"></emu-xref> whose keys are included in the %Collator%[[relevantExtensionKeys]] internal slot of the standard built-in object that is the initial value of Intl.Collator.
325
+
The function returns a new object whose properties and attributes are set as if constructed by an object literal assigning to each of the following properties the value of the corresponding internal slot of this Collator object (see <emu-xrefhref="#sec-properties-of-intl-collator-instances"></emu-xref>): locale, usage, sensitivity, ignorePunctuation, collation, as well as those properties shown in <emu-xrefhref="#table-collator-options"></emu-xref> whose keys are included in the %Collator%.[[RelevantExtensionKeys]] internal slot of the standard built-in object that is the initial value of Intl.Collator.
324
326
</p>
325
327
</emu-clause>
326
328
</emu-clause>
@@ -333,32 +335,32 @@ <h1>Properties of Intl.Collator Instances</h1>
333
335
</p>
334
336
335
337
<p>
336
-
Intl.Collator instances and other objects that have been successfully initialized as a Collator have [[initializedIntlObject]] and [[initializedCollator]] internal slots whose values are *true*.
338
+
Intl.Collator instances and other objects that have been successfully initialized as a Collator have [[InitializedIntlObject]] and [[InitializedCollator]] internal slots whose values are *true*.
337
339
</p>
338
340
339
341
<p>
340
342
Objects that have been successfully initialized as a Collator also have several internal slots that are computed by the constructor:
341
343
</p>
342
344
343
345
<ul>
344
-
<li>[[locale]] is a String value with the language tag of the locale whose localization is used for collation.</li>
345
-
<li>[[usage]] is one of the String values *"sort"* or *"search"*, identifying the collator usage.</li>
346
-
<li>[[sensitivity]] is one of the String values *"base"*, *"accent"*, *"case"*, or *"variant"*, identifying the collator’s sensitivity.</li>
347
-
<li>[[ignorePunctuation]] is a Boolean value, specifying whether punctuation should be ignored in comparisons.</li>
348
-
<li>[[collation]] is a String value with the "type" given in Unicode Technical Standard 35 for the collation, except that the values *"standard"* and *"search"* are not allowed, while the value *"default"* is allowed.</li>
346
+
<li>[[Locale]] is a String value with the language tag of the locale whose localization is used for collation.</li>
347
+
<li>[[Usage]] is one of the String values *"sort"* or *"search"*, identifying the collator usage.</li>
348
+
<li>[[Sensitivity]] is one of the String values *"base"*, *"accent"*, *"case"*, or *"variant"*, identifying the collator’s sensitivity.</li>
349
+
<li>[[IgnorePunctuation]] is a Boolean value, specifying whether punctuation should be ignored in comparisons.</li>
350
+
<li>[[Collation]] is a String value with the "type" given in Unicode Technical Standard 35 for the collation, except that the values *"standard"* and *"search"* are not allowed, while the value *"default"* is allowed.</li>
349
351
</ul>
350
352
351
353
<p>
352
-
Objects that have been successfully initialized as a Collator also have the following internal slots if the key corresponding to the name of the internal slot in <emu-xrefhref="#table-collator-options"></emu-xref> is included in the [[relevantExtensionKeys]] internal slot of Intl.Collator:
354
+
Objects that have been successfully initialized as a Collator also have the following internal slots if the key corresponding to the name of the internal slot in <emu-xrefhref="#table-collator-options"></emu-xref> is included in the [[RelevantExtensionKeys]] internal slot of Intl.Collator:
353
355
</p>
354
356
355
357
<ul>
356
-
<li>[[numeric]] is a Boolean value, specifying whether numeric sorting is used.</li>
357
-
<li>[[caseFirst]] is a String value; allowed values are specified in <emu-xrefhref="#table-collator-options"></emu-xref>.</li>
358
+
<li>[[Numeric]] is a Boolean value, specifying whether numeric sorting is used.</li>
359
+
<li>[[CaseFirst]] is a String value; allowed values are specified in <emu-xrefhref="#table-collator-options"></emu-xref>.</li>
358
360
</ul>
359
361
360
362
<p>
361
-
Finally, objects that have been successfully initialized as a Collator have a [[boundCompare]] internal slot that caches the function returned by the compare accessor (<emu-xrefhref="#sec-intl.collator.prototype.compare"></emu-xref>).
363
+
Finally, objects that have been successfully initialized as a Collator have a [[BoundCompare]] internal slot that caches the function returned by the compare accessor (<emu-xrefhref="#sec-intl.collator.prototype.compare"></emu-xref>).
0 commit comments