mirror of
https://github.com/golang/go
synced 2024-11-21 23:34:42 -07:00
unicode: document large var blocks and the SpecialCase vars.
Fixes #2772. R=golang-dev, r CC=golang-dev https://golang.org/cl/5631047
This commit is contained in:
parent
57b7bbe988
commit
ebd9f236de
@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
package unicode
|
package unicode
|
||||||
|
|
||||||
var TurkishCase = _TurkishCase
|
var TurkishCase SpecialCase = _TurkishCase
|
||||||
var _TurkishCase = SpecialCase{
|
var _TurkishCase = SpecialCase{
|
||||||
CaseRange{0x0049, 0x0049, d{0, 0x131 - 0x49, 0}},
|
CaseRange{0x0049, 0x0049, d{0, 0x131 - 0x49, 0}},
|
||||||
CaseRange{0x0069, 0x0069, d{0x130 - 0x69, 0, 0x130 - 0x69}},
|
CaseRange{0x0069, 0x0069, d{0x130 - 0x69, 0, 0x130 - 0x69}},
|
||||||
@ -17,4 +17,4 @@ var _TurkishCase = SpecialCase{
|
|||||||
CaseRange{0x0131, 0x0131, d{0x49 - 0x131, 0, 0x49 - 0x131}},
|
CaseRange{0x0131, 0x0131, d{0x49 - 0x131, 0, 0x49 - 0x131}},
|
||||||
}
|
}
|
||||||
|
|
||||||
var AzeriCase = _TurkishCase
|
var AzeriCase SpecialCase = _TurkishCase
|
||||||
|
@ -486,6 +486,7 @@ func printCategories() {
|
|||||||
func(code rune) bool { return chars[code].category == name })
|
func(code rune) bool { return chars[code].category == name })
|
||||||
}
|
}
|
||||||
decl.Sort()
|
decl.Sort()
|
||||||
|
fmt.Println("// The following variables are of type *RangeTable:")
|
||||||
fmt.Println("var (")
|
fmt.Println("var (")
|
||||||
for _, d := range decl {
|
for _, d := range decl {
|
||||||
fmt.Print(d)
|
fmt.Print(d)
|
||||||
@ -768,6 +769,7 @@ func printScriptOrProperty(doProps bool) {
|
|||||||
fmt.Print("}\n\n")
|
fmt.Print("}\n\n")
|
||||||
}
|
}
|
||||||
decl.Sort()
|
decl.Sort()
|
||||||
|
fmt.Println("// The following variables are of type *RangeTable:")
|
||||||
fmt.Println("var (")
|
fmt.Println("var (")
|
||||||
for _, d := range decl {
|
for _, d := range decl {
|
||||||
fmt.Print(d)
|
fmt.Print(d)
|
||||||
|
@ -2701,6 +2701,7 @@ var _Zs = &RangeTable{
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// The following variables are of type *RangeTable:
|
||||||
var (
|
var (
|
||||||
Cc = _Cc // Cc is the set of Unicode characters in category Cc.
|
Cc = _Cc // Cc is the set of Unicode characters in category Cc.
|
||||||
Cf = _Cf // Cf is the set of Unicode characters in category Cf.
|
Cf = _Cf // Cf is the set of Unicode characters in category Cf.
|
||||||
@ -4053,6 +4054,7 @@ var _Yi = &RangeTable{
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// The following variables are of type *RangeTable:
|
||||||
var (
|
var (
|
||||||
Arabic = _Arabic // Arabic is the set of Unicode characters in script Arabic.
|
Arabic = _Arabic // Arabic is the set of Unicode characters in script Arabic.
|
||||||
Armenian = _Armenian // Armenian is the set of Unicode characters in script Armenian.
|
Armenian = _Armenian // Armenian is the set of Unicode characters in script Armenian.
|
||||||
@ -5114,6 +5116,7 @@ var _White_Space = &RangeTable{
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// The following variables are of type *RangeTable:
|
||||||
var (
|
var (
|
||||||
ASCII_Hex_Digit = _ASCII_Hex_Digit // ASCII_Hex_Digit is the set of Unicode characters with property ASCII_Hex_Digit.
|
ASCII_Hex_Digit = _ASCII_Hex_Digit // ASCII_Hex_Digit is the set of Unicode characters with property ASCII_Hex_Digit.
|
||||||
Bidi_Control = _Bidi_Control // Bidi_Control is the set of Unicode characters with property Bidi_Control.
|
Bidi_Control = _Bidi_Control // Bidi_Control is the set of Unicode characters with property Bidi_Control.
|
||||||
|
Loading…
Reference in New Issue
Block a user