Skip to content

Commit

Permalink
Editorial: Add links to Unicode Character Database files
Browse files Browse the repository at this point in the history
  • Loading branch information
gibson042 committed Jan 19, 2022
1 parent db15bb2 commit 4c8e33f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -34070,7 +34070,7 @@ <h1>String.prototype.toLowerCase ( )</h1>
1. Let _L_ be ! CodePointsToString(_lowerText_).
1. Return _L_.
</emu-alg>
<p>The result must be derived according to the locale-insensitive case mappings in the Unicode Character Database (this explicitly includes not only the file <code>UnicodeData.txt</code>, but also all locale-insensitive mappings in the file <code>SpecialCasing.txt</code> that accompanies it).</p>
<p>The result must be derived according to the locale-insensitive case mappings in the Unicode Character Database (this explicitly includes not only the file <a href="https://unicode.org/Public/UCD/latest/ucd/UnicodeData.txt"><code>UnicodeData.txt</code></a>, but also all locale-insensitive mappings in the file <a href="https://unicode.org/Public/UCD/latest/ucd/SpecialCasing.txt"><code>SpecialCasing.txt</code></a> that accompanies it).</p>
<emu-note>
<p>The case mapping of some code points may produce multiple code points. In this case the result String may not be the same length as the source String. Because both `toUpperCase` and `toLowerCase` have context-sensitive behaviour, the functions are not symmetrical. In other words, `s.toUpperCase().toLowerCase()` is not necessarily equal to `s.toLowerCase()`.</p>
</emu-note>
Expand Down Expand Up @@ -35466,7 +35466,7 @@ <h1>
</dl>
<emu-alg>
1. If _Unicode_ is *true* and _IgnoreCase_ is *true*, then
1. If the file <code>CaseFolding.txt</code> of the Unicode Character Database provides a simple or common case folding mapping for _ch_, return the result of applying that mapping to _ch_.
1. If the file <a href="https://unicode.org/Public/UCD/latest/ucd/CaseFolding.txt"><code>CaseFolding.txt</code></a> of the Unicode Character Database provides a simple or common case folding mapping for _ch_, return the result of applying that mapping to _ch_.
1. Return _ch_.
1. If _IgnoreCase_ is *false*, return _ch_.
1. Assert: _ch_ is a UTF-16 code unit.
Expand Down

0 comments on commit 4c8e33f

Please sign in to comment.