diff --git a/spec/collator.html b/spec/collator.html index f79b416a..583f5696 100644 --- a/spec/collator.html +++ b/spec/collator.html @@ -4,7 +4,7 @@

Collator Objects

The Intl.Collator Constructor

- The Intl.Collator constructor is the %Collator% 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 . + The Intl.Collator constructor is the %Intl.Collator% 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 .

@@ -16,11 +16,11 @@

Intl.Collator ( [ _locales_ [ , _options_ ] ] )

1. If NewTarget is *undefined*, let _newTarget_ be the active function object, else let _newTarget_ be NewTarget. 1. Let _internalSlotsList_ be « [[InitializedCollator]], [[Locale]], [[Usage]], [[Sensitivity]], [[IgnorePunctuation]], [[Collation]], [[BoundCompare]] ». - 1. If %Collator%.[[RelevantExtensionKeys]] contains *"kn"*, then + 1. If %Intl.Collator%.[[RelevantExtensionKeys]] contains *"kn"*, then 1. Append [[Numeric]] to _internalSlotsList_. - 1. If %Collator%.[[RelevantExtensionKeys]] contains *"kf"*, then + 1. If %Intl.Collator%.[[RelevantExtensionKeys]] contains *"kf"*, then 1. Append [[CaseFirst]] to _internalSlotsList_. - 1. Let _collator_ be ? OrdinaryCreateFromConstructor(_newTarget_, *"%Collator.prototype%"*, _internalSlotsList_). + 1. Let _collator_ be ? OrdinaryCreateFromConstructor(_newTarget_, *"%Intl.Collator.prototype%"*, _internalSlotsList_). 1. Return ? InitializeCollator(_collator_, _locales_, _options_).
@@ -43,9 +43,9 @@

1. Let _usage_ be ? GetOption(_options_, *"usage"*, ~string~, « *"sort"*, *"search"* », *"sort"*). 1. Set _collator_.[[Usage]] to _usage_. 1. If _usage_ is *"sort"*, then - 1. Let _localeData_ be %Collator%.[[SortLocaleData]]. + 1. Let _localeData_ be %Intl.Collator%.[[SortLocaleData]]. 1. Else, - 1. Let _localeData_ be %Collator%.[[SearchLocaleData]]. + 1. Let _localeData_ be %Intl.Collator%.[[SearchLocaleData]]. 1. Let _opt_ be a new Record. 1. Let _matcher_ be ? GetOption(_options_, *"localeMatcher"*, ~string~, « *"lookup"*, *"best fit"* », *"best fit"*). 1. Set _opt_.[[localeMatcher]] to _matcher_. @@ -59,8 +59,8 @@

1. Set _opt_.[[kn]] to _numeric_. 1. Let _caseFirst_ be ? GetOption(_options_, *"caseFirst"*, ~string~, « *"upper"*, *"lower"*, *"false"* », *undefined*). 1. Set _opt_.[[kf]] to _caseFirst_. - 1. Let _relevantExtensionKeys_ be %Collator%.[[RelevantExtensionKeys]]. - 1. Let _r_ be ResolveLocale(%Collator%.[[AvailableLocales]], _requestedLocales_, _opt_, _relevantExtensionKeys_, _localeData_). + 1. Let _relevantExtensionKeys_ be %Intl.Collator%.[[RelevantExtensionKeys]]. + 1. Let _r_ be ResolveLocale(%Intl.Collator%.[[AvailableLocales]], _requestedLocales_, _opt_, _relevantExtensionKeys_, _localeData_). 1. Set _collator_.[[Locale]] to _r_.[[locale]]. 1. Set _collation_ to _r_.[[co]]. 1. If _collation_ is *null*, set _collation_ to *"default"*. @@ -100,7 +100,7 @@

Properties of the Intl.Collator Constructor

Intl.Collator.prototype

- The value of `Intl.Collator.prototype` is %Collator.prototype%. + The value of `Intl.Collator.prototype` is %Intl.Collator.prototype%.

@@ -116,7 +116,7 @@

Intl.Collator.supportedLocalesOf ( _locales_ [ , _options_ ] )

- 1. Let _availableLocales_ be %Collator%.[[AvailableLocales]]. + 1. Let _availableLocales_ be %Intl.Collator%.[[AvailableLocales]]. 1. Let _requestedLocales_ be ? CanonicalizeLocaleList(_locales_). 1. Return ? SupportedLocales(_availableLocales_, _requestedLocales_, _options_). @@ -149,14 +149,14 @@

Internal slots

Properties of the Intl.Collator Prototype Object

- The Intl.Collator prototype object is itself an ordinary object. %Collator.prototype% 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. + The Intl.Collator prototype object is itself an ordinary object. %Intl.Collator.prototype% 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.

Intl.Collator.prototype.constructor

- The initial value of `Intl.Collator.prototype.constructor` is %Collator%. + The initial value of `Intl.Collator.prototype.constructor` is %Intl.Collator%.

@@ -316,7 +316,7 @@

Intl.Collator.prototype.resolvedOptions ( )

1. Let _v_ be the value of _collator_'s internal slot whose name is the Internal Slot value of the current row. 1. If the current row has an Extension Key value, then 1. Let _extensionKey_ be the Extension Key value of the current row. - 1. If %Collator%.[[RelevantExtensionKeys]] does not contain _extensionKey_, then + 1. If %Intl.Collator%.[[RelevantExtensionKeys]] does not contain _extensionKey_, then 1. Set _v_ to *undefined*. 1. If _v_ is not *undefined*, then 1. Perform ! CreateDataPropertyOrThrow(_options_, _p_, _v_). @@ -377,7 +377,7 @@

Intl.Collator.prototype.resolvedOptions ( )

Properties of Intl.Collator Instances

- Intl.Collator instances are ordinary objects that inherit properties from %Collator.prototype%. + Intl.Collator instances are ordinary objects that inherit properties from %Intl.Collator.prototype%.

diff --git a/spec/conventions.html b/spec/conventions.html index 76812716..f7c69af3 100644 --- a/spec/conventions.html +++ b/spec/conventions.html @@ -42,64 +42,64 @@

Well-Known Intrinsic Objects

- %Collator% + %Intl% + `Intl` + The `Intl` object () + + + %Intl.Collator% `Intl.Collator` The `Intl.Collator` constructor () - %DateTimeFormat% + %Intl.DateTimeFormat% `Intl.DateTimeFormat` The `Intl.DateTimeFormat` constructor () - %DisplayNames% + %Intl.DisplayNames% `Intl.DisplayNames` The `Intl.DisplayNames` constructor () - %Intl% - `Intl` - The `Intl` object () - - - %ListFormat% + %Intl.ListFormat% `Intl.ListFormat` The `Intl.ListFormat` constructor () - %Locale% + %Intl.Locale% `Intl.Locale` The `Intl.Locale` constructor () - %NumberFormat% + %Intl.NumberFormat% `Intl.NumberFormat` The `Intl.NumberFormat` constructor () - %PluralRules% + %Intl.PluralRules% `Intl.PluralRules` The `Intl.PluralRules` constructor () - %RelativeTimeFormat% + %Intl.RelativeTimeFormat% `Intl.RelativeTimeFormat` The `Intl.RelativeTimeFormat` constructor () - %Segmenter% + %Intl.Segmenter% `Intl.Segmenter` The `Intl.Segmenter` constructor () - %SegmentIteratorPrototype% + %IntlSegmentIteratorPrototype% - The prototype of Segment Iterator objects () + The prototype of Segment Iterator objects () - %SegmentsPrototype% + %IntlSegmentsPrototype% - The prototype of Segments objects () + The prototype of Segments objects () diff --git a/spec/datetimeformat.html b/spec/datetimeformat.html index 7b9dd70b..e482b29b 100644 --- a/spec/datetimeformat.html +++ b/spec/datetimeformat.html @@ -5,7 +5,7 @@

DateTimeFormat Objects

The Intl.DateTimeFormat Constructor

- The Intl.DateTimeFormat constructor is the %DateTimeFormat% 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 . + The Intl.DateTimeFormat constructor is the %Intl.DateTimeFormat% 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 .

@@ -36,7 +36,7 @@

- 1. If _newTarget_ is *undefined* and ? OrdinaryHasInstance(%DateTimeFormat%, _this_) is *true*, then + 1. If _newTarget_ is *undefined* and ? OrdinaryHasInstance(%Intl.DateTimeFormat%, _this_) is *true*, then 1. Perform ? DefinePropertyOrThrow(_this_, %Intl%.[[FallbackSymbol]], PropertyDescriptor{ [[Value]]: _dateTimeFormat_, [[Writable]]: *false*, [[Enumerable]]: *false*, [[Configurable]]: *false* }). 1. Return _this_. 1. Return _dateTimeFormat_. @@ -60,7 +60,7 @@

- 1. Let _dateTimeFormat_ be ? OrdinaryCreateFromConstructor(_newTarget_, *"%DateTimeFormat.prototype%"*, « [[InitializedDateTimeFormat]], [[Locale]], [[Calendar]], [[NumberingSystem]], [[TimeZone]], [[Weekday]], [[Era]], [[Year]], [[Month]], [[Day]], [[DayPeriod]], [[Hour]], [[Minute]], [[Second]], [[FractionalSecondDigits]], [[TimeZoneName]], [[HourCycle]], [[DateStyle]], [[TimeStyle]], [[Pattern]], [[RangePatterns]], [[BoundFormat]] »). + 1. Let _dateTimeFormat_ be ? OrdinaryCreateFromConstructor(_newTarget_, *"%Intl.DateTimeFormat.prototype%"*, « [[InitializedDateTimeFormat]], [[Locale]], [[Calendar]], [[NumberingSystem]], [[TimeZone]], [[Weekday]], [[Era]], [[Year]], [[Month]], [[Day]], [[DayPeriod]], [[Hour]], [[Minute]], [[Second]], [[FractionalSecondDigits]], [[TimeZoneName]], [[HourCycle]], [[DateStyle]], [[TimeStyle]], [[Pattern]], [[RangePatterns]], [[BoundFormat]] »). 1. Let _requestedLocales_ be ? CanonicalizeLocaleList(_locales_). 1. Set _options_ to ? CoerceOptionsToObject(_options_). 1. Let _opt_ be a new Record. @@ -79,8 +79,8 @@

1. If _hour12_ is not *undefined*, then 1. Set _hourCycle_ to *null*. 1. Set _opt_.[[hc]] to _hourCycle_. - 1. Let _localeData_ be %DateTimeFormat%.[[LocaleData]]. - 1. Let _r_ be ResolveLocale(%DateTimeFormat%.[[AvailableLocales]], _requestedLocales_, _opt_, %DateTimeFormat%.[[RelevantExtensionKeys]], _localeData_). + 1. Let _localeData_ be %Intl.DateTimeFormat%.[[LocaleData]]. + 1. Let _r_ be ResolveLocale(%Intl.DateTimeFormat%.[[AvailableLocales]], _requestedLocales_, _opt_, %Intl.DateTimeFormat%.[[RelevantExtensionKeys]], _localeData_). 1. Set _dateTimeFormat_.[[Locale]] to _r_.[[locale]]. 1. Let _resolvedCalendar_ be _r_.[[ca]]. 1. Set _dateTimeFormat_.[[Calendar]] to _resolvedCalendar_. @@ -214,7 +214,7 @@

Properties of the Intl.DateTimeFormat Constructor

Intl.DateTimeFormat.prototype

- The value of `Intl.DateTimeFormat.prototype` is %DateTimeFormat.prototype%. + The value of `Intl.DateTimeFormat.prototype` is %Intl.DateTimeFormat.prototype%.

This property has the attributes { [[Writable]]: *false*, [[Enumerable]]: *false*, [[Configurable]]: *false* }. @@ -229,7 +229,7 @@

Intl.DateTimeFormat.supportedLocalesOf ( _locales_ [ , _options_ ] )

- 1. Let _availableLocales_ be %DateTimeFormat%.[[AvailableLocales]]. + 1. Let _availableLocales_ be %Intl.DateTimeFormat%.[[AvailableLocales]]. 1. Let _requestedLocales_ be ? CanonicalizeLocaleList(_locales_). 1. Return ? SupportedLocales(_availableLocales_, _requestedLocales_, _options_). @@ -471,14 +471,14 @@

Internal slots

Properties of the Intl.DateTimeFormat Prototype Object

- The Intl.DateTimeFormat prototype object is itself an ordinary object. %DateTimeFormat.prototype% 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. + The Intl.DateTimeFormat prototype object is itself an ordinary object. %Intl.DateTimeFormat.prototype% 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.

Intl.DateTimeFormat.prototype.constructor

- The initial value of `Intl.DateTimeFormat.prototype.constructor` is %DateTimeFormat%. + The initial value of `Intl.DateTimeFormat.prototype.constructor` is %Intl.DateTimeFormat%.

@@ -728,7 +728,7 @@

Intl.DateTimeFormat.prototype.resolvedOptions ( )

Properties of Intl.DateTimeFormat Instances

- Intl.DateTimeFormat instances are ordinary objects that inherit properties from %DateTimeFormat.prototype%. + Intl.DateTimeFormat instances are ordinary objects that inherit properties from %Intl.DateTimeFormat.prototype%.

@@ -842,7 +842,7 @@

description
-
_styles_ is a record from %DateTimeFormat%.[[LocaleData]].[[<_locale_>]].[[styles]].[[<_calendar_>]] for some locale _locale_ and calendar _calendar_. It returns the appropriate format record for date time formatting based on the parameters.
+
_styles_ is a record from %Intl.DateTimeFormat%.[[LocaleData]].[[<_locale_>]].[[styles]].[[<_calendar_>]] for some locale _locale_ and calendar _calendar_. It returns the appropriate format record for date time formatting based on the parameters.
1. Assert: _dateStyle_ is not *undefined* or _timeStyle_ is not *undefined*. @@ -995,17 +995,17 @@

1. Let _locale_ be _dateTimeFormat_.[[Locale]]. 1. Let _nfOptions_ be OrdinaryObjectCreate(*null*). 1. Perform ! CreateDataPropertyOrThrow(_nfOptions_, *"useGrouping"*, *false*). - 1. Let _nf_ be ! Construct(%NumberFormat%, « _locale_, _nfOptions_ »). + 1. Let _nf_ be ! Construct(%Intl.NumberFormat%, « _locale_, _nfOptions_ »). 1. Let _nf2Options_ be OrdinaryObjectCreate(*null*). 1. Perform ! CreateDataPropertyOrThrow(_nf2Options_, *"minimumIntegerDigits"*, *2*𝔽). 1. Perform ! CreateDataPropertyOrThrow(_nf2Options_, *"useGrouping"*, *false*). - 1. Let _nf2_ be ! Construct(%NumberFormat%, « _locale_, _nf2Options_ »). + 1. Let _nf2_ be ! Construct(%Intl.NumberFormat%, « _locale_, _nf2Options_ »). 1. Let _fractionalSecondDigits_ be _dateTimeFormat_.[[FractionalSecondDigits]]. 1. If _fractionalSecondDigits_ is not *undefined*, then 1. Let _nf3Options_ be OrdinaryObjectCreate(*null*). 1. Perform ! CreateDataPropertyOrThrow(_nf3Options_, *"minimumIntegerDigits"*, 𝔽(_fractionalSecondDigits_)). 1. Perform ! CreateDataPropertyOrThrow(_nf3Options_, *"useGrouping"*, *false*). - 1. Let _nf3_ be ! Construct(%NumberFormat%, « _locale_, _nf3Options_ »). + 1. Let _nf3_ be ! Construct(%Intl.NumberFormat%, « _locale_, _nf3Options_ »). 1. Let _tm_ be ToLocalTime(ℤ(ℝ(_x_) × 106), _dateTimeFormat_.[[Calendar]], _dateTimeFormat_.[[TimeZone]]). 1. Let _result_ be a new empty List. 1. For each Record { [[Type]], [[Value]] } _patternPart_ of _patternParts_, do @@ -1373,12 +1373,12 @@

description
- 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 . + 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 .
1. If Type(_dtf_) is not Object, throw a *TypeError* exception. - 1. If _dtf_ does not have an [[InitializedDateTimeFormat]] internal slot and ? OrdinaryHasInstance(%DateTimeFormat%, _dtf_) is *true*, then + 1. If _dtf_ does not have an [[InitializedDateTimeFormat]] internal slot and ? OrdinaryHasInstance(%Intl.DateTimeFormat%, _dtf_) is *true*, then 1. Return ? Get(_dtf_, %Intl%.[[FallbackSymbol]]). 1. Return _dtf_. diff --git a/spec/displaynames.html b/spec/displaynames.html index 2f647100..eb147e67 100644 --- a/spec/displaynames.html +++ b/spec/displaynames.html @@ -5,7 +5,7 @@

DisplayNames Objects

The Intl.DisplayNames Constructor

- The DisplayNames constructor is the %DisplayNames% 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 . + The DisplayNames constructor is the %Intl.DisplayNames% 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 .

@@ -17,15 +17,15 @@

Intl.DisplayNames ( _locales_, _options_ )

1. If NewTarget is *undefined*, throw a *TypeError* exception. - 1. Let _displayNames_ be ? OrdinaryCreateFromConstructor(NewTarget, *"%DisplayNames.prototype%"*, « [[InitializedDisplayNames]], [[Locale]], [[Style]], [[Type]], [[Fallback]], [[LanguageDisplay]], [[Fields]] »). + 1. Let _displayNames_ be ? OrdinaryCreateFromConstructor(NewTarget, *"%Intl.DisplayNames.prototype%"*, « [[InitializedDisplayNames]], [[Locale]], [[Style]], [[Type]], [[Fallback]], [[LanguageDisplay]], [[Fields]] »). 1. Let _requestedLocales_ be ? CanonicalizeLocaleList(_locales_). 1. If _options_ is *undefined*, throw a *TypeError* exception. 1. Set _options_ to ? GetOptionsObject(_options_). 1. Let _opt_ be a new Record. - 1. Let _localeData_ be %DisplayNames%.[[LocaleData]]. + 1. Let _localeData_ be %Intl.DisplayNames%.[[LocaleData]]. 1. Let _matcher_ be ? GetOption(_options_, *"localeMatcher"*, ~string~, « *"lookup"*, *"best fit"* », *"best fit"*). 1. Set _opt_.[[localeMatcher]] to _matcher_. - 1. Let _r_ be ResolveLocale(%DisplayNames%.[[AvailableLocales]], _requestedLocales_, _opt_, %DisplayNames%.[[RelevantExtensionKeys]], _localeData_). + 1. Let _r_ be ResolveLocale(%Intl.DisplayNames%.[[AvailableLocales]], _requestedLocales_, _opt_, %Intl.DisplayNames%.[[RelevantExtensionKeys]], _localeData_). 1. Let _style_ be ? GetOption(_options_, *"style"*, ~string~, « *"narrow"*, *"short"*, *"long"* », *"long"*). 1. Set _displayNames_.[[Style]] to _style_. 1. Let _type_ be ? GetOption(_options_, *"type"*, ~string~, « *"language"*, *"region"*, *"script"*, *"currency"*, *"calendar"*, *"dateTimeField"* », *undefined*). @@ -64,7 +64,7 @@

Properties of the Intl.DisplayNames Constructor

Intl.DisplayNames.prototype

- The value of `Intl.DisplayNames.prototype` is %DisplayNames.prototype%. + The value of `Intl.DisplayNames.prototype` is %Intl.DisplayNames.prototype%.

This property has the attributes { [[Writable]]: *false*, [[Enumerable]]: *false*, [[Configurable]]: *false* }. @@ -79,7 +79,7 @@

Intl.DisplayNames.supportedLocalesOf ( _locales_ [ , _options_ ] )

- 1. Let _availableLocales_ be %DisplayNames%.[[AvailableLocales]]. + 1. Let _availableLocales_ be %Intl.DisplayNames%.[[AvailableLocales]]. 1. Let _requestedLocales_ be ? CanonicalizeLocaleList(_locales_). 1. Return ? SupportedLocales(_availableLocales_, _requestedLocales_, _options_). @@ -123,14 +123,14 @@

Internal slots

Properties of the Intl.DisplayNames Prototype Object

- The Intl.DisplayNames prototype object is itself an ordinary object. %DisplayNames.prototype% is not an Intl.DisplayNames instance and does not have an [[InitializedDisplayNames]] internal slot or any of the other internal slots of Intl.DisplayNames instance objects. + The Intl.DisplayNames prototype object is itself an ordinary object. %Intl.DisplayNames.prototype% is not an Intl.DisplayNames instance and does not have an [[InitializedDisplayNames]] internal slot or any of the other internal slots of Intl.DisplayNames instance objects.

Intl.DisplayNames.prototype.constructor

- The initial value of `Intl.DisplayNames.prototype.constructor` is %DisplayNames%. + The initial value of `Intl.DisplayNames.prototype.constructor` is %Intl.DisplayNames%.

@@ -221,7 +221,7 @@

Intl.DisplayNames.prototype.resolvedOptions ( )

Properties of Intl.DisplayNames Instances

- Intl.DisplayNames instances are ordinary objects that inherit properties from %DisplayNames.prototype%. + Intl.DisplayNames instances are ordinary objects that inherit properties from %Intl.DisplayNames.prototype%.

diff --git a/spec/listformat.html b/spec/listformat.html index 4391006f..23933cd5 100644 --- a/spec/listformat.html +++ b/spec/listformat.html @@ -5,7 +5,7 @@

ListFormat Objects

The Intl.ListFormat Constructor

- The ListFormat constructor is the %ListFormat% 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 . + The ListFormat constructor is the %Intl.ListFormat% 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 .

@@ -17,14 +17,14 @@

Intl.ListFormat ( [ _locales_ [ , _options_ ] ] )

1. If NewTarget is *undefined*, throw a *TypeError* exception. - 1. Let _listFormat_ be ? OrdinaryCreateFromConstructor(NewTarget, *"%ListFormat.prototype%"*, « [[InitializedListFormat]], [[Locale]], [[Type]], [[Style]], [[Templates]] »). + 1. Let _listFormat_ be ? OrdinaryCreateFromConstructor(NewTarget, *"%Intl.ListFormat.prototype%"*, « [[InitializedListFormat]], [[Locale]], [[Type]], [[Style]], [[Templates]] »). 1. Let _requestedLocales_ be ? CanonicalizeLocaleList(_locales_). 1. Set _options_ to ? GetOptionsObject(_options_). 1. Let _opt_ be a new Record. 1. Let _matcher_ be ? GetOption(_options_, *"localeMatcher"*, ~string~, « *"lookup"*, *"best fit"* », *"best fit"*). 1. Set _opt_.[[localeMatcher]] to _matcher_. - 1. Let _localeData_ be %ListFormat%.[[LocaleData]]. - 1. Let _r_ be ResolveLocale(%ListFormat%.[[AvailableLocales]], _requestedLocales_, _opt_, %ListFormat%.[[RelevantExtensionKeys]], _localeData_). + 1. Let _localeData_ be %Intl.ListFormat%.[[LocaleData]]. + 1. Let _r_ be ResolveLocale(%Intl.ListFormat%.[[AvailableLocales]], _requestedLocales_, _opt_, %Intl.ListFormat%.[[RelevantExtensionKeys]], _localeData_). 1. Set _listFormat_.[[Locale]] to _r_.[[locale]]. 1. Let _type_ be ? GetOption(_options_, *"type"*, ~string~, « *"conjunction"*, *"disjunction"*, *"unit"* », *"conjunction"*). 1. Set _listFormat_.[[Type]] to _type_. @@ -50,7 +50,7 @@

Properties of the Intl.ListFormat Constructor

Intl.ListFormat.prototype

- The value of `Intl.ListFormat.prototype` is %ListFormat.prototype%. + The value of `Intl.ListFormat.prototype` is %Intl.ListFormat.prototype%.

This property has the attributes { [[Writable]]: *false*, [[Enumerable]]: *false*, [[Configurable]]: *false* }. @@ -65,7 +65,7 @@

Intl.ListFormat.supportedLocalesOf ( _locales_ [ , _options_ ] )

- 1. Let _availableLocales_ be %ListFormat%.[[AvailableLocales]]. + 1. Let _availableLocales_ be %Intl.ListFormat%.[[AvailableLocales]]. 1. Let _requestedLocales_ be ? CanonicalizeLocaleList(_locales_). 1. Return ? SupportedLocales(_availableLocales_, _requestedLocales_, _options_). @@ -87,7 +87,7 @@

Internal slots

- The value of the [[LocaleData]] internal slot is implementation-defined within the constraints described in and the following additional constraints, for each locale value _locale_ in %ListFormat%.[[AvailableLocales]]: + The value of the [[LocaleData]] internal slot is implementation-defined within the constraints described in and the following additional constraints, for each locale value _locale_ in %Intl.ListFormat%.[[AvailableLocales]]:

    @@ -109,14 +109,14 @@

    Internal slots

    Properties of the Intl.ListFormat Prototype Object

    - The Intl.ListFormat prototype object is itself an ordinary object. %ListFormat.prototype% is not an Intl.ListFormat instance and does not have an [[InitializedListFormat]] internal slot or any of the other internal slots of Intl.ListFormat instance objects. + The Intl.ListFormat prototype object is itself an ordinary object. %Intl.ListFormat.prototype% is not an Intl.ListFormat instance and does not have an [[InitializedListFormat]] internal slot or any of the other internal slots of Intl.ListFormat instance objects.

    Intl.ListFormat.prototype.constructor

    - The initial value of `Intl.ListFormat.prototype.constructor` is %ListFormat%. + The initial value of `Intl.ListFormat.prototype.constructor` is %Intl.ListFormat%.

    @@ -210,7 +210,7 @@

    Intl.ListFormat.prototype.resolvedOptions ( )

    Properties of Intl.ListFormat Instances

    - Intl.ListFormat instances inherit properties from %ListFormat.prototype%. + Intl.ListFormat instances inherit properties from %Intl.ListFormat.prototype%.

    diff --git a/spec/locale-sensitive-functions.html b/spec/locale-sensitive-functions.html index 6a939413..43b1c84a 100644 --- a/spec/locale-sensitive-functions.html +++ b/spec/locale-sensitive-functions.html @@ -27,7 +27,7 @@

    String.prototype.localeCompare ( _that_ [ , _locales_ [ , _options_ ] ] ) @@ -149,7 +149,7 @@

    Number.prototype.toLocaleString ( [ _locales_ [ , _options_ ] ] )

    1. Let _x_ be ? ThisNumberValue(*this* value). - 1. Let _numberFormat_ be ? Construct(%NumberFormat%, « _locales_, _options_ »). + 1. Let _numberFormat_ be ? Construct(%Intl.NumberFormat%, « _locales_, _options_ »). 1. Return FormatNumeric(_numberFormat_, ! ToIntlMathematicalValue(_x_)). @@ -175,7 +175,7 @@

    BigInt.prototype.toLocaleString ( [ _locales_ [ , _options_ ] ] )

    1. Let _x_ be ? ThisBigIntValue(*this* value). - 1. Let _numberFormat_ be ? Construct(%NumberFormat%, « _locales_, _options_ »). + 1. Let _numberFormat_ be ? Construct(%Intl.NumberFormat%, « _locales_, _options_ »). 1. Return FormatNumeric(_numberFormat_, ℝ(_x_)). @@ -204,7 +204,7 @@

    Date.prototype.toLocaleString ( [ _locales_ [ , _options_ ] ] )

    1. Perform ? RequireInternalSlot(_dateObject_, [[DateValue]]). 1. Let _x_ be _dateObject_.[[DateValue]]. 1. If _x_ is *NaN*, return *"Invalid Date"*. - 1. Let _dateFormat_ be ? CreateDateTimeFormat(%DateTimeFormat%, _locales_, _options_, ~any~, ~all~). + 1. Let _dateFormat_ be ? CreateDateTimeFormat(%Intl.DateTimeFormat%, _locales_, _options_, ~any~, ~all~). 1. Return ! FormatDateTime(_dateFormat_, _x_). @@ -225,7 +225,7 @@

    Date.prototype.toLocaleDateString ( [ _locales_ [ , _options_ ] ] )

    1. Perform ? RequireInternalSlot(_dateObject_, [[DateValue]]). 1. Let _x_ be _dateObject_.[[DateValue]]. 1. If _x_ is *NaN*, return *"Invalid Date"*. - 1. Let _dateFormat_ be ? CreateDateTimeFormat(%DateTimeFormat%, _locales_, _options_, ~date~, ~date~). + 1. Let _dateFormat_ be ? CreateDateTimeFormat(%Intl.DateTimeFormat%, _locales_, _options_, ~date~, ~date~). 1. Return ! FormatDateTime(_dateFormat_, _x_). @@ -246,7 +246,7 @@

    Date.prototype.toLocaleTimeString ( [ _locales_ [ , _options_ ] ] )

    1. Perform ? RequireInternalSlot(_dateObject_, [[DateValue]]). 1. Let _x_ be _dateObject_.[[DateValue]]. 1. If _x_ is *NaN*, return *"Invalid Date"*. - 1. Let _timeFormat_ be ? CreateDateTimeFormat(%DateTimeFormat%, _locales_, _options_, ~time~, ~time~). + 1. Let _timeFormat_ be ? CreateDateTimeFormat(%Intl.DateTimeFormat%, _locales_, _options_, ~time~, ~time~). 1. Return ! FormatDateTime(_timeFormat_, _x_). diff --git a/spec/locale.html b/spec/locale.html index 4e977e71..5b39bd9b 100644 --- a/spec/locale.html +++ b/spec/locale.html @@ -5,7 +5,7 @@

    Locale Objects

    The Intl.Locale Constructor

    - The Locale constructor is the %Locale% intrinsic object and a standard built-in property of the Intl object. + The Locale constructor is the %Intl.Locale% intrinsic object and a standard built-in property of the Intl object.

    @@ -17,13 +17,13 @@

    Intl.Locale ( _tag_ [ , _options_ ] )

    1. If NewTarget is *undefined*, throw a *TypeError* exception. - 1. Let _relevantExtensionKeys_ be %Locale%.[[RelevantExtensionKeys]]. + 1. Let _relevantExtensionKeys_ be %Intl.Locale%.[[RelevantExtensionKeys]]. 1. Let _internalSlotsList_ be « [[InitializedLocale]], [[Locale]], [[Calendar]], [[Collation]], [[HourCycle]], [[NumberingSystem]] ». 1. If _relevantExtensionKeys_ contains *"kf"*, then 1. Append [[CaseFirst]] to _internalSlotsList_. 1. If _relevantExtensionKeys_ contains *"kn"*, then 1. Append [[Numeric]] to _internalSlotsList_. - 1. Let _locale_ be ? OrdinaryCreateFromConstructor(NewTarget, *"%Locale.prototype%"*, _internalSlotsList_). + 1. Let _locale_ be ? OrdinaryCreateFromConstructor(NewTarget, *"%Intl.Locale.prototype%"*, _internalSlotsList_). 1. If Type(_tag_) is not String or Object, throw a *TypeError* exception. 1. If Type(_tag_) is Object and _tag_ has an [[InitializedLocale]] internal slot, then 1. Let _tag_ be _tag_.[[Locale]]. @@ -163,7 +163,7 @@

    Properties of the Intl.Locale Constructor

    Intl.Locale.prototype

    - The value of `Intl.Locale.prototype` is %Locale.prototype%. + The value of `Intl.Locale.prototype` is %Intl.Locale.prototype%.

    This property has the attributes { [[Writable]]: *false*, [[Enumerable]]: *false*, [[Configurable]]: *false* }. @@ -174,7 +174,7 @@

    Intl.Locale.prototype

    Internal slots

    - The value of the [[RelevantExtensionKeys]] internal slot is « *"ca"*, *"co"*, *"hc"*, *"kf"*, *"kn"*, *"nu"* ». If %Collator%.[[RelevantExtensionKeys]] does not contain *"kf"*, then remove *"kf"* from %Locale%.[[RelevantExtensionKeys]]. If %Collator%.[[RelevantExtensionKeys]] does not contain *"kn"*, then remove *"kn"* from %Locale%.[[RelevantExtensionKeys]]. + The value of the [[RelevantExtensionKeys]] internal slot is « *"ca"*, *"co"*, *"hc"*, *"kf"*, *"kn"*, *"nu"* ». If %Intl.Collator%.[[RelevantExtensionKeys]] does not contain *"kf"*, then remove *"kf"* from %Intl.Locale%.[[RelevantExtensionKeys]]. If %Intl.Collator%.[[RelevantExtensionKeys]] does not contain *"kn"*, then remove *"kn"* from %Intl.Locale%.[[RelevantExtensionKeys]].

    @@ -183,14 +183,14 @@

    Internal slots

    Properties of the Intl.Locale Prototype Object

    - The Intl.Locale prototype object is itself an ordinary object. %Locale.prototype% is not an Intl.Locale instance and does not have an [[InitializedLocale]] internal slot or any of the other internal slots of Intl.Locale instance objects. + The Intl.Locale prototype object is itself an ordinary object. %Intl.Locale.prototype% is not an Intl.Locale instance and does not have an [[InitializedLocale]] internal slot or any of the other internal slots of Intl.Locale instance objects.

    Intl.Locale.prototype.constructor

    - The initial value of `Intl.Locale.prototype.constructor` is %Locale%. + The initial value of `Intl.Locale.prototype.constructor` is %Intl.Locale%.

    @@ -213,7 +213,7 @@

    Intl.Locale.prototype.maximize ( )

    1. Let _loc_ be the *this* value. 1. Perform ? RequireInternalSlot(_loc_, [[InitializedLocale]]). 1. Let _maximal_ be the result of the Add Likely Subtags algorithm applied to _loc_.[[Locale]]. If an error is signaled, set _maximal_ to _loc_.[[Locale]]. - 1. Return ! Construct(%Locale%, _maximal_). + 1. Return ! Construct(%Intl.Locale%, _maximal_). @@ -224,7 +224,7 @@

    Intl.Locale.prototype.minimize ( )

    1. Let _loc_ be the *this* value. 1. Perform ? RequireInternalSlot(_loc_, [[InitializedLocale]]). 1. Let _minimal_ be the result of the Remove Likely Subtags algorithm applied to _loc_.[[Locale]]. If an error is signaled, set _minimal_ to _loc_.[[Locale]]. - 1. Return ! Construct(%Locale%, _minimal_). + 1. Return ! Construct(%Intl.Locale%, _minimal_). @@ -261,7 +261,7 @@

    get Intl.Locale.prototype.calendar

    get Intl.Locale.prototype.caseFirst

    -

    This property only exists if %Locale%.[[RelevantExtensionKeys]] contains *"kf"*.

    +

    This property only exists if %Intl.Locale%.[[RelevantExtensionKeys]] contains *"kf"*.

    `Intl.Locale.prototype.caseFirst` is an accessor property whose set accessor function is *undefined*. Its get accessor function performs the following steps:

    1. Let _loc_ be the *this* value. @@ -292,7 +292,7 @@

    get Intl.Locale.prototype.hourCycle

    get Intl.Locale.prototype.numeric

    -

    This property only exists if %Locale%.[[RelevantExtensionKeys]] contains *"kn"*.

    +

    This property only exists if %Intl.Locale%.[[RelevantExtensionKeys]] contains *"kn"*.

    `Intl.Locale.prototype.numeric` is an accessor property whose set accessor function is *undefined*. Its get accessor function performs the following steps:

    1. Let _loc_ be the *this* value. @@ -346,7 +346,7 @@

    get Intl.Locale.prototype.region

    Properties of Intl.Locale Instances

    - Intl.Locale instances are ordinary objects that inherit properties from %Locale.prototype%. + Intl.Locale instances are ordinary objects that inherit properties from %Intl.Locale.prototype%.

    @@ -363,8 +363,8 @@

    Properties of Intl.Locale Instances

  • [[Collation]] is a String value that is a syntactically valid type value as given in Unicode Technical Standard #35 Part 1 Core, Section 3.2 Unicode Locale Identifier, or is *undefined*.
  • [[HourCycle]] is a String value that is a syntactically valid type value as given in Unicode Technical Standard #35 Part 1 Core, Section 3.2 Unicode Locale Identifier, or is *undefined*.
  • [[NumberingSystem]] is a String value that is a syntactically valid type value as given in Unicode Technical Standard #35 Part 1 Core, Section 3.2 Unicode Locale Identifier, or is *undefined*.
  • -
  • [[CaseFirst]] is a String value that is a syntactically valid type value as given in Unicode Technical Standard #35 Part 1 Core, Section 3.2 Unicode Locale Identifier, or is *undefined*. This internal slot only exists if the [[RelevantExtensionKeys]] internal slot of %Locale% contains *"kf"*.
  • -
  • [[Numeric]] is a Boolean value specifying whether numeric sorting is used by the locale, or is *undefined*. This internal slot only exists if the [[RelevantExtensionKeys]] internal slot of %Locale% contains *"kn"*.
  • +
  • [[CaseFirst]] is a String value that is a syntactically valid type value as given in Unicode Technical Standard #35 Part 1 Core, Section 3.2 Unicode Locale Identifier, or is *undefined*. This internal slot only exists if the [[RelevantExtensionKeys]] internal slot of %Intl.Locale% contains *"kf"*.
  • +
  • [[Numeric]] is a Boolean value specifying whether numeric sorting is used by the locale, or is *undefined*. This internal slot only exists if the [[RelevantExtensionKeys]] internal slot of %Intl.Locale% contains *"kn"*.
diff --git a/spec/numberformat.html b/spec/numberformat.html index 68cd005e..73f54fcf 100644 --- a/spec/numberformat.html +++ b/spec/numberformat.html @@ -5,7 +5,7 @@

NumberFormat Objects

The Intl.NumberFormat Constructor

- The NumberFormat constructor is the %NumberFormat% 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 . + The NumberFormat constructor is the %Intl.NumberFormat% 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 .

@@ -17,7 +17,7 @@

Intl.NumberFormat ( [ _locales_ [ , _options_ ] ] )

1. If NewTarget is *undefined*, let _newTarget_ be the active function object, else let _newTarget_ be NewTarget. - 1. Let _numberFormat_ be ? OrdinaryCreateFromConstructor(_newTarget_, *"%NumberFormat.prototype%"*, « [[InitializedNumberFormat]], [[Locale]], [[DataLocale]], [[NumberingSystem]], [[Style]], [[Unit]], [[UnitDisplay]], [[Currency]], [[CurrencyDisplay]], [[CurrencySign]], [[MinimumIntegerDigits]], [[MinimumFractionDigits]], [[MaximumFractionDigits]], [[MinimumSignificantDigits]], [[MaximumSignificantDigits]], [[RoundingType]], [[Notation]], [[CompactDisplay]], [[UseGrouping]], [[SignDisplay]], [[RoundingIncrement]], [[RoundingMode]], [[ComputedRoundingPriority]], [[TrailingZeroDisplay]], [[BoundFormat]] »). + 1. Let _numberFormat_ be ? OrdinaryCreateFromConstructor(_newTarget_, *"%Intl.NumberFormat.prototype%"*, « [[InitializedNumberFormat]], [[Locale]], [[DataLocale]], [[NumberingSystem]], [[Style]], [[Unit]], [[UnitDisplay]], [[Currency]], [[CurrencyDisplay]], [[CurrencySign]], [[MinimumIntegerDigits]], [[MinimumFractionDigits]], [[MaximumFractionDigits]], [[MinimumSignificantDigits]], [[MaximumSignificantDigits]], [[RoundingType]], [[Notation]], [[CompactDisplay]], [[UseGrouping]], [[SignDisplay]], [[RoundingIncrement]], [[RoundingMode]], [[ComputedRoundingPriority]], [[TrailingZeroDisplay]], [[BoundFormat]] »). 1. Perform ? InitializeNumberFormat(_numberFormat_, _locales_, _options_). 1. If the implementation supports the normative optional constructor mode of , then 1. Let _this_ be the *this* value. @@ -37,7 +37,7 @@

- 1. If _newTarget_ is *undefined* and ? OrdinaryHasInstance(%NumberFormat%, _this_) is *true*, then + 1. If _newTarget_ is *undefined* and ? OrdinaryHasInstance(%Intl.NumberFormat%, _this_) is *true*, then 1. Perform ? DefinePropertyOrThrow(_this_, %Intl%.[[FallbackSymbol]], PropertyDescriptor{ [[Value]]: _numberFormat_, [[Writable]]: *false*, [[Enumerable]]: *false*, [[Configurable]]: *false* }). 1. Return _this_. 1. Return _numberFormat_. @@ -68,8 +68,8 @@

1. If _numberingSystem_ is not *undefined*, then 1. If _numberingSystem_ cannot be matched by the type Unicode locale nonterminal, throw a *RangeError* exception. 1. Set _opt_.[[nu]] to _numberingSystem_. - 1. Let _localeData_ be %NumberFormat%.[[LocaleData]]. - 1. Let _r_ be ResolveLocale(%NumberFormat%.[[AvailableLocales]], _requestedLocales_, _opt_, %NumberFormat%.[[RelevantExtensionKeys]], _localeData_). + 1. Let _localeData_ be %Intl.NumberFormat%.[[LocaleData]]. + 1. Let _r_ be ResolveLocale(%Intl.NumberFormat%.[[AvailableLocales]], _requestedLocales_, _opt_, %Intl.NumberFormat%.[[RelevantExtensionKeys]], _localeData_). 1. Set _numberFormat_.[[Locale]] to _r_.[[locale]]. 1. Set _numberFormat_.[[DataLocale]] to _r_.[[dataLocale]]. 1. Set _numberFormat_.[[NumberingSystem]] to _r_.[[nu]]. @@ -245,7 +245,7 @@

Properties of the Intl.NumberFormat Constructor

Intl.NumberFormat.prototype

- The value of `Intl.NumberFormat.prototype` is %NumberFormat.prototype%. + The value of `Intl.NumberFormat.prototype` is %Intl.NumberFormat.prototype%.

This property has the attributes { [[Writable]]: *false*, [[Enumerable]]: *false*, [[Configurable]]: *false* }. @@ -260,7 +260,7 @@

Intl.NumberFormat.supportedLocalesOf ( _locales_ [ , _options_ ] )

- 1. Let _availableLocales_ be %NumberFormat%.[[AvailableLocales]]. + 1. Let _availableLocales_ be %Intl.NumberFormat%.[[AvailableLocales]]. 1. Let _requestedLocales_ be ? CanonicalizeLocaleList(_locales_). 1. Return ? SupportedLocales(_availableLocales_, _requestedLocales_, _options_). @@ -315,14 +315,14 @@

Internal slots

Properties of the Intl.NumberFormat Prototype Object

- The Intl.NumberFormat prototype object is itself an ordinary object. %NumberFormat.prototype% is not an Intl.NumberFormat instance and does not have an [[InitializedNumberFormat]] internal slot or any of the other internal slots of Intl.NumberFormat instance objects. + The Intl.NumberFormat prototype object is itself an ordinary object. %Intl.NumberFormat.prototype% is not an Intl.NumberFormat instance and does not have an [[InitializedNumberFormat]] internal slot or any of the other internal slots of Intl.NumberFormat instance objects.

Intl.NumberFormat.prototype.constructor

- The initial value of `Intl.NumberFormat.prototype.constructor` is %NumberFormat%. + The initial value of `Intl.NumberFormat.prototype.constructor` is %Intl.NumberFormat%.

@@ -559,7 +559,7 @@

Intl.NumberFormat.prototype.resolvedOptions ( )

Properties of Intl.NumberFormat Instances

- Intl.NumberFormat instances are ordinary objects that inherit properties from %NumberFormat.prototype%. + Intl.NumberFormat instances are ordinary objects that inherit properties from %Intl.NumberFormat.prototype%.

@@ -1433,12 +1433,12 @@

description
- It returns the NumberFormat instance of its input object, which is either the value itself or a value associated with it by %NumberFormat% according to the normative optional constructor mode of . + It returns the NumberFormat instance of its input object, which is either the value itself or a value associated with it by %Intl.NumberFormat% according to the normative optional constructor mode of .
1. If Type(_nf_) is not Object, throw a *TypeError* exception. - 1. If _nf_ does not have an [[InitializedNumberFormat]] internal slot and ? OrdinaryHasInstance(%NumberFormat%, _nf_) is *true*, then + 1. If _nf_ does not have an [[InitializedNumberFormat]] internal slot and ? OrdinaryHasInstance(%Intl.NumberFormat%, _nf_) is *true*, then 1. Return ? Get(_nf_, %Intl%.[[FallbackSymbol]]). 1. Return _nf_. @@ -1459,7 +1459,7 @@

- 1. Let _localeData_ be %NumberFormat%.[[LocaleData]]. + 1. Let _localeData_ be %Intl.NumberFormat%.[[LocaleData]]. 1. Let _dataLocale_ be _numberFormat_.[[DataLocale]]. 1. Let _dataLocaleData_ be _localeData_.[[<_dataLocale_>]]. 1. Let _patterns_ be _dataLocaleData_.[[patterns]]. @@ -1548,7 +1548,7 @@

- 1. Let _localeData_ be %NumberFormat%.[[LocaleData]]. + 1. Let _localeData_ be %Intl.NumberFormat%.[[LocaleData]]. 1. Let _dataLocale_ be _numberFormat_.[[DataLocale]]. 1. Let _dataLocaleData_ be _localeData_.[[<_dataLocale_>]]. 1. Let _notationSubPatterns_ be _dataLocaleData_.[[notationSubPatterns]]. diff --git a/spec/overview.html b/spec/overview.html index 08384d76..c4b5156b 100644 --- a/spec/overview.html +++ b/spec/overview.html @@ -47,7 +47,7 @@

API Overview

API Conventions

- Every Intl constructor should behave as if defined by a class, throwing a *TypeError* exception when called as a function (without NewTarget). For backwards compatibility with past editions, this does not apply to %Collator%, %DateTimeFormat%, or %NumberFormat%, each of which construct and return a new object when called as a function. + Every Intl constructor should behave as if defined by a class, throwing a *TypeError* exception when called as a function (without NewTarget). For backwards compatibility with past editions, this does not apply to %Intl.Collator%, %Intl.DateTimeFormat%, or %Intl.NumberFormat%, each of which construct and return a new object when called as a function.

diff --git a/spec/pluralrules.html b/spec/pluralrules.html index 1956bc37..49d4f8be 100644 --- a/spec/pluralrules.html +++ b/spec/pluralrules.html @@ -5,7 +5,7 @@

PluralRules Objects

The Intl.PluralRules Constructor

- The PluralRules constructor is the %PluralRules% 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 . + The PluralRules constructor is the %Intl.PluralRules% 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 .

@@ -17,7 +17,7 @@

Intl.PluralRules ( [ _locales_ [ , _options_ ] ] )

1. If NewTarget is *undefined*, throw a *TypeError* exception. - 1. Let _pluralRules_ be ? OrdinaryCreateFromConstructor(NewTarget, *"%PluralRules.prototype%"*, « [[InitializedPluralRules]], [[Locale]], [[Type]], [[MinimumIntegerDigits]], [[MinimumFractionDigits]], [[MaximumFractionDigits]], [[MinimumSignificantDigits]], [[MaximumSignificantDigits]], [[RoundingType]], [[RoundingIncrement]], [[RoundingMode]], [[ComputedRoundingPriority]], [[TrailingZeroDisplay]] »). + 1. Let _pluralRules_ be ? OrdinaryCreateFromConstructor(NewTarget, *"%Intl.PluralRules.prototype%"*, « [[InitializedPluralRules]], [[Locale]], [[Type]], [[MinimumIntegerDigits]], [[MinimumFractionDigits]], [[MaximumFractionDigits]], [[MinimumSignificantDigits]], [[MaximumSignificantDigits]], [[RoundingType]], [[RoundingIncrement]], [[RoundingMode]], [[ComputedRoundingPriority]], [[TrailingZeroDisplay]] »). 1. Return ? InitializePluralRules(_pluralRules_, _locales_, _options_).
@@ -43,8 +43,8 @@

1. Let _t_ be ? GetOption(_options_, *"type"*, ~string~, « *"cardinal"*, *"ordinal"* », *"cardinal"*). 1. Set _pluralRules_.[[Type]] to _t_. 1. Perform ? SetNumberFormatDigitOptions(_pluralRules_, _options_, 0, 3, *"standard"*). - 1. Let _localeData_ be %PluralRules%.[[LocaleData]]. - 1. Let _r_ be ResolveLocale(%PluralRules%.[[AvailableLocales]], _requestedLocales_, _opt_, %PluralRules%.[[RelevantExtensionKeys]], _localeData_). + 1. Let _localeData_ be %Intl.PluralRules%.[[LocaleData]]. + 1. Let _r_ be ResolveLocale(%Intl.PluralRules%.[[AvailableLocales]], _requestedLocales_, _opt_, %Intl.PluralRules%.[[RelevantExtensionKeys]], _localeData_). 1. Set _pluralRules_.[[Locale]] to _r_.[[locale]]. 1. Return _pluralRules_. @@ -62,7 +62,7 @@

Properties of the Intl.PluralRules Constructor

Intl.PluralRules.prototype

- The value of `Intl.PluralRules.prototype` is %PluralRules.prototype%. + The value of `Intl.PluralRules.prototype` is %Intl.PluralRules.prototype%.

This property has the attributes { [[Writable]]: *false*, [[Enumerable]]: *false*, [[Configurable]]: *false* }. @@ -77,7 +77,7 @@

Intl.PluralRules.supportedLocalesOf ( _locales_ [ , _options_ ] )

- 1. Let _availableLocales_ be %PluralRules%.[[AvailableLocales]]. + 1. Let _availableLocales_ be %Intl.PluralRules%.[[AvailableLocales]]. 1. Let _requestedLocales_ be ? CanonicalizeLocaleList(_locales_). 1. Return ? SupportedLocales(_availableLocales_, _requestedLocales_, _options_). @@ -112,14 +112,14 @@

Internal slots

Properties of the Intl.PluralRules Prototype Object

- The Intl.PluralRules prototype object is itself an ordinary object. %PluralRules.prototype% is not an Intl.PluralRules instance and does not have an [[InitializedPluralRules]] internal slot or any of the other internal slots of Intl.PluralRules instance objects. + The Intl.PluralRules prototype object is itself an ordinary object. %Intl.PluralRules.prototype% is not an Intl.PluralRules instance and does not have an [[InitializedPluralRules]] internal slot or any of the other internal slots of Intl.PluralRules instance objects.

Intl.PluralRules.prototype.constructor

- The initial value of `Intl.PluralRules.prototype.constructor` is %PluralRules%. + The initial value of `Intl.PluralRules.prototype.constructor` is %Intl.PluralRules%.

@@ -271,7 +271,7 @@

Intl.PluralRules.prototype.resolvedOptions ( )

Properties of Intl.PluralRules Instances

- Intl.PluralRules instances are ordinary objects that inherit properties from %PluralRules.prototype%. + Intl.PluralRules instances are ordinary objects that inherit properties from %Intl.PluralRules.prototype%.

diff --git a/spec/relativetimeformat.html b/spec/relativetimeformat.html index b8a19699..68a32146 100644 --- a/spec/relativetimeformat.html +++ b/spec/relativetimeformat.html @@ -5,7 +5,7 @@

RelativeTimeFormat Objects

The Intl.RelativeTimeFormat Constructor

- The RelativeTimeFormat constructor is the %RelativeTimeFormat% 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 . + The RelativeTimeFormat constructor is the %Intl.RelativeTimeFormat% 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 .

@@ -17,7 +17,7 @@

Intl.RelativeTimeFormat ( [ _locales_ [ , _options_ ] ] )

1. If NewTarget is *undefined*, throw a *TypeError* exception. - 1. Let _relativeTimeFormat_ be ? OrdinaryCreateFromConstructor(NewTarget, *"%RelativeTimeFormat.prototype%"*, « [[InitializedRelativeTimeFormat]], [[Locale]], [[DataLocale]], [[Style]], [[Numeric]], [[NumberFormat]], [[NumberingSystem]], [[PluralRules]] »). + 1. Let _relativeTimeFormat_ be ? OrdinaryCreateFromConstructor(NewTarget, *"%Intl.RelativeTimeFormat.prototype%"*, « [[InitializedRelativeTimeFormat]], [[Locale]], [[DataLocale]], [[Style]], [[Numeric]], [[NumberFormat]], [[NumberingSystem]], [[PluralRules]] »). 1. Return ? InitializeRelativeTimeFormat(_relativeTimeFormat_, _locales_, _options_).
@@ -46,8 +46,8 @@

1. If _numberingSystem_ is not *undefined*, then 1. If _numberingSystem_ cannot be matched by the type Unicode locale nonterminal, throw a *RangeError* exception. 1. Set _opt_.[[nu]] to _numberingSystem_. - 1. Let _localeData_ be %RelativeTimeFormat%.[[LocaleData]]. - 1. Let _r_ be ResolveLocale(%RelativeTimeFormat%.[[AvailableLocales]], _requestedLocales_, _opt_, %RelativeTimeFormat%.[[RelevantExtensionKeys]], _localeData_). + 1. Let _localeData_ be %Intl.RelativeTimeFormat%.[[LocaleData]]. + 1. Let _r_ be ResolveLocale(%Intl.RelativeTimeFormat%.[[AvailableLocales]], _requestedLocales_, _opt_, %Intl.RelativeTimeFormat%.[[RelevantExtensionKeys]], _localeData_). 1. Let _locale_ be _r_.[[locale]]. 1. Set _relativeTimeFormat_.[[Locale]] to _locale_. 1. Set _relativeTimeFormat_.[[DataLocale]] to _r_.[[dataLocale]]. @@ -56,8 +56,8 @@

1. Set _relativeTimeFormat_.[[Style]] to _style_. 1. Let _numeric_ be ? GetOption(_options_, *"numeric"*, ~string~, « *"always"*, *"auto"* », *"always"*). 1. Set _relativeTimeFormat_.[[Numeric]] to _numeric_. - 1. Let _relativeTimeFormat_.[[NumberFormat]] be ! Construct(%NumberFormat%, « _locale_ »). - 1. Let _relativeTimeFormat_.[[PluralRules]] be ! Construct(%PluralRules%, « _locale_ »). + 1. Let _relativeTimeFormat_.[[NumberFormat]] be ! Construct(%Intl.NumberFormat%, « _locale_ »). + 1. Let _relativeTimeFormat_.[[PluralRules]] be ! Construct(%Intl.PluralRules%, « _locale_ »). 1. Return _relativeTimeFormat_. @@ -74,7 +74,7 @@

Properties of the Intl.RelativeTimeFormat Constructor

Intl.RelativeTimeFormat.prototype

- The value of `Intl.RelativeTimeFormat.prototype` is %RelativeTimeFormat.prototype%. + The value of `Intl.RelativeTimeFormat.prototype` is %Intl.RelativeTimeFormat.prototype%.

This property has the attributes { [[Writable]]: *false*, [[Enumerable]]: *false*, [[Configurable]]: *false* }. @@ -89,7 +89,7 @@

Intl.RelativeTimeFormat.supportedLocalesOf ( _locales_ [ , _options_ ] )

- 1. Let _availableLocales_ be %RelativeTimeFormat%.[[AvailableLocales]]. + 1. Let _availableLocales_ be %Intl.RelativeTimeFormat%.[[AvailableLocales]]. 1. Let _requestedLocales_ be ? CanonicalizeLocaleList(_locales_). 1. Return ? SupportedLocales(_availableLocales_, _requestedLocales_, _options_). @@ -136,14 +136,14 @@

Internal slots

Properties of the Intl.RelativeTimeFormat Prototype Object

- The Intl.RelativeTimeFormat prototype object is itself an ordinary object. %RelativeTimeFormat.prototype% is not an Intl.RelativeTimeFormat instance and does not have an [[InitializedRelativeTimeFormat]] internal slot or any of the other internal slots of Intl.RelativeTimeFormat instance objects. + The Intl.RelativeTimeFormat prototype object is itself an ordinary object. %Intl.RelativeTimeFormat.prototype% is not an Intl.RelativeTimeFormat instance and does not have an [[InitializedRelativeTimeFormat]] internal slot or any of the other internal slots of Intl.RelativeTimeFormat instance objects.

Intl.RelativeTimeFormat.prototype.constructor

- The initial value of `Intl.RelativeTimeFormat.prototype.constructor` is %RelativeTimeFormat%. + The initial value of `Intl.RelativeTimeFormat.prototype.constructor` is %Intl.RelativeTimeFormat%.

@@ -243,7 +243,7 @@

Intl.RelativeTimeFormat.prototype.resolvedOptions ( )

Properties of Intl.RelativeTimeFormat Instances

- Intl.RelativeTimeFormat instances are ordinary objects that inherit properties from %RelativeTimeFormat.prototype%. + Intl.RelativeTimeFormat instances are ordinary objects that inherit properties from %Intl.RelativeTimeFormat.prototype%.

@@ -309,7 +309,7 @@

1. If _value_ is *NaN*, *+∞*𝔽, or *-∞*𝔽, throw a *RangeError* exception. 1. Let _unit_ be ? SingularRelativeTimeUnit(_unit_). - 1. Let _localeData_ be %RelativeTimeFormat%.[[LocaleData]]. + 1. Let _localeData_ be %Intl.RelativeTimeFormat%.[[LocaleData]]. 1. Let _dataLocale_ be _relativeTimeFormat_.[[DataLocale]]. 1. Let _fields_ be _localeData_.[[<_dataLocale_>]]. 1. Let _style_ be _relativeTimeFormat_.[[Style]]. diff --git a/spec/segmenter.html b/spec/segmenter.html index eaefc094..972cd4f2 100644 --- a/spec/segmenter.html +++ b/spec/segmenter.html @@ -5,7 +5,7 @@

Segmenter Objects

The Intl.Segmenter Constructor

- The Segmenter constructor is the %Segmenter% 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 . + The Segmenter constructor is the %Intl.Segmenter% 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 .

@@ -18,14 +18,14 @@

Intl.Segmenter ( [ _locales_ [ , _options_ ] ] )

1. If NewTarget is *undefined*, throw a *TypeError* exception. 1. Let _internalSlotsList_ be « [[InitializedSegmenter]], [[Locale]], [[SegmenterGranularity]] ». - 1. Let _segmenter_ be ? OrdinaryCreateFromConstructor(NewTarget, *"%Segmenter.prototype%"*, _internalSlotsList_). + 1. Let _segmenter_ be ? OrdinaryCreateFromConstructor(NewTarget, *"%Intl.Segmenter.prototype%"*, _internalSlotsList_). 1. Let _requestedLocales_ be ? CanonicalizeLocaleList(_locales_). 1. Set _options_ to ? GetOptionsObject(_options_). 1. Let _opt_ be a new Record. 1. Let _matcher_ be ? GetOption(_options_, *"localeMatcher"*, ~string~, « *"lookup"*, *"best fit"* », *"best fit"*). 1. Set _opt_.[[localeMatcher]] to _matcher_. - 1. Let _localeData_ be %Segmenter%.[[LocaleData]]. - 1. Let _r_ be ResolveLocale(%Segmenter%.[[AvailableLocales]], _requestedLocales_, _opt_, %Segmenter%.[[RelevantExtensionKeys]], _localeData_). + 1. Let _localeData_ be %Intl.Segmenter%.[[LocaleData]]. + 1. Let _r_ be ResolveLocale(%Intl.Segmenter%.[[AvailableLocales]], _requestedLocales_, _opt_, %Intl.Segmenter%.[[RelevantExtensionKeys]], _localeData_). 1. Set _segmenter_.[[Locale]] to _r_.[[locale]]. 1. Let _granularity_ be ? GetOption(_options_, *"granularity"*, ~string~, « *"grapheme"*, *"word"*, *"sentence"* », *"grapheme"*). 1. Set _segmenter_.[[SegmenterGranularity]] to _granularity_. @@ -45,7 +45,7 @@

Properties of the Intl.Segmenter Constructor

Intl.Segmenter.prototype

- The value of `Intl.Segmenter.prototype` is %Segmenter.prototype%. + The value of `Intl.Segmenter.prototype` is %Intl.Segmenter.prototype%.

This property has the attributes { [[Writable]]: *false*, [[Enumerable]]: *false*, [[Configurable]]: *false* }. @@ -60,7 +60,7 @@

Intl.Segmenter.supportedLocalesOf ( _locales_ [ , _options_ ] )

- 1. Let _availableLocales_ be %Segmenter%.[[AvailableLocales]]. + 1. Let _availableLocales_ be %Intl.Segmenter%.[[AvailableLocales]]. 1. Let _requestedLocales_ be ? CanonicalizeLocaleList(_locales_). 1. Return ? SupportedLocales(_availableLocales_, _requestedLocales_, _options_). @@ -90,14 +90,14 @@

Internal slots

Properties of the Intl.Segmenter Prototype Object

- The Intl.Segmenter prototype object is itself an ordinary object. %Segmenter.prototype% is not an Intl.Segmenter instance and does not have an [[InitializedSegmenter]] internal slot or any of the other internal slots of Intl.Segmenter instance objects. + The Intl.Segmenter prototype object is itself an ordinary object. %Intl.Segmenter.prototype% is not an Intl.Segmenter instance and does not have an [[InitializedSegmenter]] internal slot or any of the other internal slots of Intl.Segmenter instance objects.

Intl.Segmenter.prototype.constructor

- The initial value of `Intl.Segmenter.prototype.constructor` is %Segmenter%. + The initial value of `Intl.Segmenter.prototype.constructor` is %Intl.Segmenter%.

@@ -172,7 +172,7 @@

Intl.Segmenter.prototype.resolvedOptions ( )

Properties of Intl.Segmenter Instances

- Intl.Segmenter instances are ordinary objects that inherit properties from %Segmenter.prototype%. + Intl.Segmenter instances are ordinary objects that inherit properties from %Intl.Segmenter.prototype%.

@@ -209,24 +209,24 @@

1. Let _internalSlotsList_ be « [[SegmentsSegmenter]], [[SegmentsString]] ». - 1. Let _segments_ be OrdinaryObjectCreate(%SegmentsPrototype%, _internalSlotsList_). + 1. Let _segments_ be OrdinaryObjectCreate(%IntlSegmentsPrototype%, _internalSlotsList_). 1. Set _segments_.[[SegmentsSegmenter]] to _segmenter_. 1. Set _segments_.[[SegmentsString]] to _string_. 1. Return _segments_. - -

The %SegmentsPrototype% Object

-

The %SegmentsPrototype% object:

+ +

The %IntlSegmentsPrototype% Object

+

The %IntlSegmentsPrototype% object:

  • is the prototype of all Segments objects.
  • is an ordinary object.
  • has the following properties:
- -

%SegmentsPrototype%.containing ( _index_ )

+ +

%IntlSegmentsPrototype%.containing ( _index_ )

The `containing` method is called on a Segments instance with argument _index_ to return a Segment Data object describing the segment in the string including the code unit at the specified index according to the locale and options of the Segments instance's constructing Intl.Segmenter instance. The following steps are taken:

1. Let _segments_ be the *this* value. @@ -242,8 +242,8 @@

%SegmentsPrototype%.containing ( _index_ )

- -

%SegmentsPrototype% [ @@iterator ] ( )

+ +

%IntlSegmentsPrototype% [ @@iterator ] ( )

The `@@iterator` method is called on a Segments instance to create a Segment Iterator over its string using the locale and options of its constructing Intl.Segmenter instance. The following steps are taken:

1. Let _segments_ be the *this* value. @@ -259,7 +259,7 @@

%SegmentsPrototype% [ @@iterator ] ( )

Properties of Segments Instances

- Segments instances are ordinary objects that inherit properties from %SegmentsPrototype%. + Segments instances are ordinary objects that inherit properties from %IntlSegmentsPrototype%.

@@ -292,7 +292,7 @@

1. Let _internalSlotsList_ be « [[IteratingSegmenter]], [[IteratedString]], [[IteratedStringNextSegmentCodeUnitIndex]] ». - 1. Let _iterator_ be OrdinaryObjectCreate(%SegmentIteratorPrototype%, _internalSlotsList_). + 1. Let _iterator_ be OrdinaryObjectCreate(%IntlSegmentIteratorPrototype%, _internalSlotsList_). 1. Set _iterator_.[[IteratingSegmenter]] to _segmenter_. 1. Set _iterator_.[[IteratedString]] to _string_. 1. Set _iterator_.[[IteratedStringNextSegmentCodeUnitIndex]] to 0. @@ -300,9 +300,9 @@

- -

The %SegmentIteratorPrototype% Object

-

The %SegmentIteratorPrototype% object:

+ +

The %IntlSegmentIteratorPrototype% Object

+

The %IntlSegmentIteratorPrototype% object:

  • is the prototype of all Segment Iterator objects.
  • is an ordinary object.
  • @@ -310,8 +310,8 @@

    The %SegmentIteratorPrototype% Object

  • has the following properties:
- -

%SegmentIteratorPrototype%.next ( )

+ +

%IntlSegmentIteratorPrototype%.next ( )

The `next` method is called on a Segment Iterator instance to advance it forward one segment and return an IteratorResult object either describing the new segment or declaring iteration done. The following steps are taken:

1. Let _iterator_ be the *this* value. @@ -328,8 +328,8 @@

%SegmentIteratorPrototype%.next ( )

- -

%SegmentIteratorPrototype% [ @@toStringTag ]

+ +

%IntlSegmentIteratorPrototype% [ @@toStringTag ]

The initial value of the @@toStringTag property is the String value *"Segmenter String Iterator"*.