mirror of https://github.com/golang/go.git
spec: New year, new spec update (to refer to Unicode 8.0).
Slightly rephrased sentence to emphasize the contents of the Unicode categories w/o repeating the full category name each time. Fixes #13414. Change-Id: Icd32ff1547fa81e866c5937a631c3344bb6087c6 Reviewed-on: https://go-review.googlesource.com/18265 Reviewed-by: Rob Pike <r@golang.org>
This commit is contained in:
parent
7fa9846749
commit
212bdd95e0
|
|
@ -1,6 +1,6 @@
|
||||||
<!--{
|
<!--{
|
||||||
"Title": "The Go Programming Language Specification",
|
"Title": "The Go Programming Language Specification",
|
||||||
"Subtitle": "Version of December 15, 2015",
|
"Subtitle": "Version of January 5, 2016",
|
||||||
"Path": "/ref/spec"
|
"Path": "/ref/spec"
|
||||||
}-->
|
}-->
|
||||||
|
|
||||||
|
|
@ -101,15 +101,14 @@ The following terms are used to denote specific Unicode character classes:
|
||||||
newline = /* the Unicode code point U+000A */ .
|
newline = /* the Unicode code point U+000A */ .
|
||||||
unicode_char = /* an arbitrary Unicode code point except newline */ .
|
unicode_char = /* an arbitrary Unicode code point except newline */ .
|
||||||
unicode_letter = /* a Unicode code point classified as "Letter" */ .
|
unicode_letter = /* a Unicode code point classified as "Letter" */ .
|
||||||
unicode_digit = /* a Unicode code point classified as "Decimal Digit" */ .
|
unicode_digit = /* a Unicode code point classified as "Number, decimal digit" */ .
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
In <a href="http://www.unicode.org/versions/Unicode6.3.0/">The Unicode Standard 6.3</a>,
|
In <a href="http://www.unicode.org/versions/Unicode8.0.0/">The Unicode Standard 8.0</a>,
|
||||||
Section 4.5 "General Category"
|
Section 4.5 "General Category" defines a set of character categories.
|
||||||
defines a set of character categories. Go treats
|
Go treats all characters in any of the Letter categories Lu, Ll, Lt, Lm, or Lo
|
||||||
those characters in category Lu, Ll, Lt, Lm, or Lo as Unicode letters,
|
as Unicode letters, and those in the Number category Nd as Unicode digits.
|
||||||
and those in category Nd as Unicode digits.
|
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<h3 id="Letters_and_digits">Letters and digits</h3>
|
<h3 id="Letters_and_digits">Letters and digits</h3>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue