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
Let <var>starting value</var> be the result of <a title="interpret a token as a hex integer">interpreting the <urange-codepoint> as a hex integer</a>.
2963
-
Let <var>ending value</var> be the negation of the result of <a title="interpret a token as a hex integer">interpreting the <negative-urange-codepoint> as a hex integer</a>.
2960
+
Let <var>start value</var> be the result of <a title="interpret a token as a hex integer">interpreting the <urange-codepoint> as a hex integer</a>.
2961
+
Let <var>end value</var> be the negation of the result of <a title="interpret a token as a hex integer">interpreting the <negative-urange-codepoint> as a hex integer</a>.
2964
2962
2965
-
The <<urange>> represents a contiguous range from <var>starting value</var> to <var>ending value</var>, inclusive.
2966
2963
2967
2964
: <code>u '+'<<urange-range>></code>
2968
2965
::
2969
2966
Split the <<urange-range>>’s representation (or representation + unit)
2970
2967
into the two halves on either side of the U+002D HYPHEN-MINUS (-) codepoint.
2971
2968
Interpret each half as a hexadecimal integer.
2972
2969
2973
-
The <<urange>> represents a contiguous range from the first half's value to the second half's value, inclusive.
2970
+
Let <var>start value</var> be the first half's value.
2971
+
Let <var>end value</var> be the second half's value.
2972
+
2973
+
To determine what codepoints the <<urange>> represents:
2974
+
2975
+
1. If <var>end value</var> is greater than the <a>maximum allowed code point</a>,
2976
+
set it to the <a>maximum allowed code point</a>.
2977
+
2978
+
2. If <var>start value</var> is greater than <var>end value</var>,
2979
+
the <<urange>> represents an empty range of codepoints.
2980
+
2981
+
3. Otherwise, the <<urange>> represents a contiguous range of codepoints from <var>start value</var> to <var>end value</var>, inclusive.
<p><adata-link-type=dfnhref=#interpret-a-token-as-a-hex-integertitle="interpret a token as a hex integer">Interpret the <urange-codepoint> as a hex integer</a>.
4408
-
The <aclass="production css" data-link-type=typehref=#typedef-urangetitle="<urange>"><urange></a> represents a range consisting only of the resulting value.</p>
4408
+
Let <var>start value</var> and <var>end value</var> both be the returned value.</p>
<p>Let <var>starting value</var> be the result of <adata-link-type=dfnhref=#interpret-a-token-as-a-hex-integertitle="interpret a token as a hex integer">interpreting the <urange-codepoint> as a hex integer</a>.
4425
-
Let <var>ending value</var> be the negation of the result of <adata-link-type=dfnhref=#interpret-a-token-as-a-hex-integertitle="interpret a token as a hex integer">interpreting the <negative-urange-codepoint> as a hex integer</a>.</p>
4422
+
<p>Let <var>start value</var> be the result of <adata-link-type=dfnhref=#interpret-a-token-as-a-hex-integertitle="interpret a token as a hex integer">interpreting the <urange-codepoint> as a hex integer</a>.
4423
+
Let <var>end value</var> be the negation of the result of <adata-link-type=dfnhref=#interpret-a-token-as-a-hex-integertitle="interpret a token as a hex integer">interpreting the <negative-urange-codepoint> as a hex integer</a>.</p>
4426
4424
4427
-
<p>The <aclass="production css" data-link-type=typehref=#typedef-urangetitle="<urange>"><urange></a> represents a contiguous range from <var>starting value</var> to <var>ending value</var>, inclusive.</p>
<p>Split the <aclass="production css" data-link-type=typehref=#typedef-urange-rangetitle="<urange-range>"><urange-range></a>’s representation (or representation + unit)
4432
4429
into the two halves on either side of the U+002D HYPHEN-MINUS (-) codepoint.
4433
4430
Interpret each half as a hexadecimal integer.</p>
4434
4431
4435
-
<p>The <aclass="production css" data-link-type=typehref=#typedef-urangetitle="<urange>"><urange></a> represents a contiguous range from the first half’s value to the second half’s value, inclusive.</p>
4432
+
<p>Let <var>start value</var> be the first half’s value.
4433
+
Let <var>end value</var> be the second half’s value.</p>
4436
4434
</dl>
4435
+
<p>To determine what codepoints the <aclass="production css" data-link-type=typehref=#typedef-urangetitle="<urange>"><urange></a> represents:</p>
4436
+
4437
+
<ol><lidata-md=""><p>If <var>end value</var> is greater than the <adata-link-type=dfnhref=#maximum-allowed-code-pointtitle="maximum allowed code point">maximum allowed code point</a>,
4438
+
set it to the <adata-link-type=dfnhref=#maximum-allowed-code-pointtitle="maximum allowed code point">maximum allowed code point</a>.</p>
4439
+
4440
+
<lidata-md=""><p>If <var>start value</var> is greater than <var>end value</var>,
4441
+
the <aclass="production css" data-link-type=typehref=#typedef-urangetitle="<urange>"><urange></a> represents an empty range of codepoints.</p>
4442
+
4443
+
<lidata-md=""><p>Otherwise, the <aclass="production css" data-link-type=typehref=#typedef-urangetitle="<urange>"><urange></a> represents a contiguous range of codepoints from <var>start value</var> to <var>end value</var>, inclusive.</p>
4444
+
</ol>
4437
4445
<p>To <dfndata-dfn-type=dfndata-noexport="" id=interpret-a-token-as-a-hex-integer>interpret a token as a hex integer<aclass=self-linkhref=#interpret-a-token-as-a-hex-integer></a></dfn>:</p>
4438
4446
4439
4447
<ul><lidata-md=""><p>If the token is a <aclass="production css" data-link-type=typehref=#typedef-number-tokentitle="<number-token>"><number-token></a> whose type flag is set to "integer",
0 commit comments