Skip to content

Commit 0b4928e

Browse files
authored
Editorial: use the term scalar value from Infra
Fixes #1080.
1 parent dcde683 commit 0b4928e

File tree

1 file changed

+16
-20
lines changed

1 file changed

+16
-20
lines changed

index.bs

Lines changed: 16 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,6 @@ urlPrefix: https://w3c.github.io/deviceorientation/spec-source-orientation.html;
5353
urlPrefix: https://w3c.github.io/mediacapture-main/; spec: MEDIACAPTURE-STREAMS
5454
type: interface
5555
text: ConstrainablePattern; url: dom-constrainablepattern;
56-
urlPrefix: http://www.unicode.org/glossary/; spec: UNICODE
57-
type: dfn
58-
text: Unicode scalar value; url: unicode_scalar_value
5956
urlPrefix: https://tc39.es/ecma262/; spec: ECMA-262
6057
type: interface; for: ECMAScript
6158
text: Array; url: sec-array-objects
@@ -1592,9 +1589,9 @@ The value of the boolean literal tokens <emu-t>true</emu-t> and
15921589
The value of an <emu-t class="regex"><a href="#prod-integer">integer</a></emu-t> token
15931590
is an integer whose value is determined as follows:
15941591

1595-
1. Let |S| be the sequence of characters matched by the <emu-t class="regex"><a href="#prod-integer">integer</a></emu-t> token.
1592+
1. Let |S| be the sequence of [=scalar values=] matched by the <emu-t class="regex"><a href="#prod-integer">integer</a></emu-t> token.
15961593
1. Let |sign| be −1 if |S| begins with <span class="char">U+002D HYPHEN-MINUS ("-")</span>, and 1 otherwise.
1597-
1. Let |base| be the base of the number based on the characters that follow the optional leading <span class="char">U+002D HYPHEN-MINUS ("-")</span> character:
1594+
1. Let |base| be the base of the number based on the [=scalar values=] that follow the optional leading <span class="char">U+002D HYPHEN-MINUS ("-")</span> character:
15981595
<dl class="switch">
15991596
: <span class="char">U+0030 DIGIT ZERO ("0")</span>, <span class="char">U+0058 LATIN CAPITAL LETTER X ("X")</span>
16001597
: <span class="char">U+0030 DIGIT ZERO ("0")</span>, <span class="char">U+0078 LATIN SMALL LETTER X ("x")</span>
@@ -1604,8 +1601,8 @@ The value of the boolean literal tokens <emu-t>true</emu-t> and
16041601
: <span class="char">Otherwise</span>
16051602
:: The base is 10.
16061603
</dl>
1607-
1. Let |number| be the result of interpreting all remaining characters following the optional leading <span class="char">U+002D HYPHEN-MINUS ("-")</span>
1608-
character and any characters indicating the base as an integer specified in base |base|.
1604+
1. Let |number| be the result of interpreting all remaining [=scalar values=] following the optional leading <span class="char">U+002D HYPHEN-MINUS ("-")</span>
1605+
character and any [=scalar values=] indicating the base as an integer specified in base |base|.
16091606
1. Return |sign| × |number|.
16101607
</div>
16111608

@@ -1621,7 +1618,7 @@ lie outside the valid range of values for its type, as given in
16211618
double-precision floating point number, depending on the type of the
16221619
constant, dictionary member or optional argument it is being used as the value for, determined as follows:
16231620

1624-
1. Let |S| be the sequence of characters matched by the
1621+
1. Let |S| be the sequence of [=scalar values=] matched by the
16251622
<emu-t class="regex"><a href="#prod-decimal">decimal</a></emu-t> token.
16261623
1. Let |result| be the Mathematical Value that would be obtained if
16271624
|S| were parsed as an ECMAScript <emu-nt>[=NumericLiteral=]</emu-nt>.
@@ -2254,9 +2251,9 @@ the value is the IDL {{undefined}} value.
22542251
token, whose <dfn lt="value of string literal tokens">value</dfn> is a
22552252
[=string type=] determined as follows:
22562253

2257-
1. Let |S| be the sequence of [=Unicode scalar values=] matched by
2254+
1. Let |S| be the sequence of [=scalar values=] matched by
22582255
the <emu-t class="regex"><a href="#prod-string">string</a></emu-t> token
2259-
with its leading and trailing <span class="char">U+0022 QUOTATION MARK ('"')</span> characters removed.
2256+
with its leading and trailing <span class="char">U+0022 QUOTATION MARK ('"')</span> [=scalar values=] removed.
22602257
1. Depending on the type of the argument:
22612258
<dl class="switch">
22622259
: {{DOMString}}
@@ -5975,9 +5972,9 @@ written as <code>DOMString?</code> in IDL, needs to be used.
59755972

59765973
Nothing in this specification requires a {{DOMString}}
59775974
value to be a valid UTF-16 string. For example, a {{DOMString}}
5978-
value might include unmatched surrogate pair characters. However, authors
5975+
value might include unmatched [=surrogate=] [=code points=]. However, authors
59795976
of specifications using Web IDL might want to obtain a sequence of
5980-
[=Unicode scalar values=] given a particular sequence of
5977+
[=scalar values=] given a particular sequence of
59815978
[=code units=].
59825979

59835980
There is no way to represent a constant {{DOMString}}
@@ -6017,7 +6014,7 @@ can be set to [=value of string literal tokens|the value=] of a
60176014

60186015
The {{USVString}} type
60196016
corresponds to the set of all possible sequences of
6020-
[=Unicode scalar values=],
6017+
[=scalar values=],
60216018
which are all of the Unicode code points apart from the
60226019
surrogate code points.
60236020

@@ -6030,8 +6027,8 @@ can be set to [=value of string literal tokens|the value=] of a
60306027
<p class="warning">
60316028
Specifications should only use
60326029
{{USVString}} for APIs that perform
6033-
text processing and need a string of Unicode
6034-
scalar values to operate on. Most APIs that use strings
6030+
text processing and need a string of
6031+
[=scalar values=] to operate on. Most APIs that use strings
60356032
should instead be using {{DOMString}},
60366033
which does not make any interpretations of the [=code units=]
60376034
in the string. When in doubt, use {{DOMString}}.
@@ -7638,15 +7635,15 @@ value when its bit pattern is interpreted as an unsigned 64 bit integer.
76387635
1. Let |string| be the result of [=converted to an IDL value|converting=] |V|
76397636
to a {{DOMString}}.
76407637
1. Return an IDL {{USVString}} value that is the result of
7641-
[=string/convert|converting=] |string| to a sequence of [=Unicode scalar values=].
7638+
[=string/convert|converting=] |string| to a sequence of [=scalar values=].
76427639
</div>
76437640

76447641
<div id="USVString-to-es" algorithm="convert an USVString to an ECMAScript value">
76457642

76467643
An IDL {{USVString}} value is [=converted to an ECMAScript value|converted=]
76477644
to an ECMAScript value by running the following algorithm:
76487645

7649-
1. Let |scalarValues| be the sequence of [=Unicode scalar values=] the {{USVString}} represents.
7646+
1. Let |scalarValues| be the sequence of [=scalar values=] the {{USVString}} represents.
76507647
1. Let |string| be the sequence of [=code units=] that results from encoding |scalarValues| in UTF-16.
76517648
1. Return the String value that represents the same sequence of [=code units=] as |string|.
76527649
</div>
@@ -14894,8 +14891,7 @@ expression syntax [[!PERLRE]]) as follows:
1489414891
</tr>
1489514892
</table>
1489614893

14897-
The tokenizer operates on a sequence of Unicode characters
14898-
[[!UNICODE]].
14894+
The tokenizer operates on a sequence of [=scalar values=].
1489914895
When tokenizing, the longest possible match must be used. For example, if the input
1490014896
text is “<span class="input">a1</span>”, it is tokenized as a single <emu-t class="regex"><a href="#prod-identifier">identifier</a></emu-t>,
1490114897
and not as a separate <emu-t class="regex"><a href="#prod-identifier">identifier</a></emu-t> and <emu-t class="regex"><a href="#prod-integer">integer</a></emu-t>.
@@ -14961,7 +14957,7 @@ The following typographic conventions are used in this document:
1496114957
* ECMAScript classes: {{ECMAScript/Map}}
1496214958
* ECMAScript language types: Object
1496314959
* Code snippets: <code>a = b + obj.f()</code>
14964-
* Unicode characters: <span class="char">U+0030 DIGIT ZERO ("0")</span>
14960+
* Scalar values: <span class="char">U+0030 DIGIT ZERO ("0")</span>
1496514961
* Extended attributes: [<code class="idl">ExampleExtendedAttribute</code>]
1496614962
* Variable names in prose and algorithms: <var ignore>exampleVariableName</var>.
1496714963
* IDL informal syntax examples:

0 commit comments

Comments
 (0)