Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
ceb1fe28
Commit
ceb1fe28
authored
Dec 02, 2009
by
Rob Pike
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update package unicode to Unicode 5.2
R=rsc CC=golang-dev
https://golang.org/cl/163062
parent
2a54997b
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
1 deletion
+17
-1
Makefile
src/pkg/unicode/Makefile
+1
-0
maketables.go
src/pkg/unicode/maketables.go
+1
-1
script_test.go
src/pkg/unicode/script_test.go
+15
-0
tables.go
src/pkg/unicode/tables.go
+0
-0
No files found.
src/pkg/unicode/Makefile
View file @
ceb1fe28
...
...
@@ -20,6 +20,7 @@ tables: maketables
$(GC)
maketables.go
$(LD)
-o
maketables maketables.
$O
./maketables
--tables
=
all
>
tables.go
gofmt
-w
tables.go
rm
-f
maketables
testtables
:
maketables
...
...
src/pkg/unicode/maketables.go
View file @
ceb1fe28
...
...
@@ -32,7 +32,7 @@ func main() {
var
dataURL
=
flag
.
String
(
"data"
,
""
,
"full URL for UnicodeData.txt; defaults to --url/UnicodeData.txt"
)
var
url
=
flag
.
String
(
"url"
,
"http://www.unicode.org/Public/5.
1
.0/ucd/"
,
"http://www.unicode.org/Public/5.
2
.0/ucd/"
,
"URL of Unicode database directory"
)
var
tablelist
=
flag
.
String
(
"tables"
,
"all"
,
...
...
src/pkg/unicode/script_test.go
View file @
ceb1fe28
...
...
@@ -19,7 +19,9 @@ type T struct {
var
inTest
=
[]
T
{
T
{
0x06e2
,
"Arabic"
},
T
{
0x0567
,
"Armenian"
},
T
{
0x10b20
,
"Avestan"
},
T
{
0x1b37
,
"Balinese"
},
T
{
0xa6af
,
"Bamum"
},
T
{
0x09c2
,
"Bengali"
},
T
{
0x3115
,
"Bopomofo"
},
T
{
0x282d
,
"Braille"
},
...
...
@@ -37,6 +39,7 @@ var inTest = []T{
T
{
0xa663
,
"Cyrillic"
},
T
{
0x10430
,
"Deseret"
},
T
{
0x094a
,
"Devanagari"
},
T
{
0x13001
,
"Egyptian_Hieroglyphs"
},
T
{
0x1271
,
"Ethiopic"
},
T
{
0x10fc
,
"Georgian"
},
T
{
0x2c40
,
"Glagolitic"
},
...
...
@@ -49,7 +52,12 @@ var inTest = []T{
T
{
0x1727
,
"Hanunoo"
},
T
{
0x05a0
,
"Hebrew"
},
T
{
0x3058
,
"Hiragana"
},
T
{
0x10841
,
"Imperial_Aramaic"
},
T
{
0x20e6
,
"Inherited"
},
T
{
0x10b70
,
"Inscriptional_Pahlavi"
},
T
{
0x10b5a
,
"Inscriptional_Parthian"
},
T
{
0xa9d0
,
"Javanese"
},
T
{
0x1109f
,
"Kaithi"
},
T
{
0x0cbd
,
"Kannada"
},
T
{
0x30a6
,
"Katakana"
},
T
{
0xa928
,
"Kayah_Li"
},
...
...
@@ -60,9 +68,11 @@ var inTest = []T{
T
{
0x1c10
,
"Lepcha"
},
T
{
0x1930
,
"Limbu"
},
T
{
0x1003c
,
"Linear_B"
},
T
{
0xa4e1
,
"Lisu"
},
T
{
0x10290
,
"Lycian"
},
T
{
0x10930
,
"Lydian"
},
T
{
0x0d42
,
"Malayalam"
},
T
{
0xabd0
,
"Meetei_Mayek"
},
T
{
0x1822
,
"Mongolian"
},
T
{
0x104c
,
"Myanmar"
},
T
{
0x19c3
,
"New_Tai_Lue"
},
...
...
@@ -71,12 +81,15 @@ var inTest = []T{
T
{
0x1c6a
,
"Ol_Chiki"
},
T
{
0x10310
,
"Old_Italic"
},
T
{
0x103c9
,
"Old_Persian"
},
T
{
0x10a6f
,
"Old_South_Arabian"
},
T
{
0x10c20
,
"Old_Turkic"
},
T
{
0x0b3e
,
"Oriya"
},
T
{
0x10491
,
"Osmanya"
},
T
{
0xa860
,
"Phags_Pa"
},
T
{
0x10918
,
"Phoenician"
},
T
{
0xa949
,
"Rejang"
},
T
{
0x16c0
,
"Runic"
},
T
{
0x081d
,
"Samaritan"
},
T
{
0xa892
,
"Saurashtra"
},
T
{
0x10463
,
"Shavian"
},
T
{
0x0dbd
,
"Sinhala"
},
...
...
@@ -86,6 +99,8 @@ var inTest = []T{
T
{
0x170f
,
"Tagalog"
},
T
{
0x176f
,
"Tagbanwa"
},
T
{
0x1972
,
"Tai_Le"
},
T
{
0x1a62
,
"Tai_Tham"
},
T
{
0xaadc
,
"Tai_Viet"
},
T
{
0x0bbf
,
"Tamil"
},
T
{
0x0c55
,
"Telugu"
},
T
{
0x07a7
,
"Thaana"
},
...
...
src/pkg/unicode/tables.go
View file @
ceb1fe28
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment