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
fe383848
Commit
fe383848
authored
Aug 31, 2009
by
Rob Pike
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
submitter's regret. rename Props to Properties
R=rsc DELTA=9 (0 added, 0 deleted, 9 changed) OCL=34148 CL=34151
parent
f0492f4e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
9 deletions
+9
-9
maketables.go
src/pkg/unicode/maketables.go
+3
-3
script_test.go
src/pkg/unicode/script_test.go
+4
-4
tables.go
src/pkg/unicode/tables.go
+2
-2
No files found.
src/pkg/unicode/maketables.go
View file @
fe383848
...
@@ -558,7 +558,7 @@ func printScriptOrProperty(doProps bool) {
...
@@ -558,7 +558,7 @@ func printScriptOrProperty(doProps bool) {
flaglist
=
*
proplist
;
flaglist
=
*
proplist
;
file
=
"PropList.txt"
;
file
=
"PropList.txt"
;
table
=
props
;
table
=
props
;
installed
=
unicode
.
Props
;
installed
=
unicode
.
Prop
ertie
s
;
}
}
if
flaglist
==
""
{
if
flaglist
==
""
{
return
return
...
@@ -608,8 +608,8 @@ func printScriptOrProperty(doProps bool) {
...
@@ -608,8 +608,8 @@ func printScriptOrProperty(doProps bool) {
);
);
if
flaglist
==
"all"
{
if
flaglist
==
"all"
{
if
doProps
{
if
doProps
{
fmt
.
Println
(
"// Props is the set of Unicode property tables."
);
fmt
.
Println
(
"// Prop
ertie
s is the set of Unicode property tables."
);
fmt
.
Println
(
"var Props = map[string] []Range {"
);
fmt
.
Println
(
"var Prop
ertie
s = map[string] []Range {"
);
}
else
{
}
else
{
fmt
.
Println
(
"// Scripts is the set of Unicode script tables."
);
fmt
.
Println
(
"// Scripts is the set of Unicode script tables."
);
fmt
.
Println
(
"var Scripts = map[string] []Range {"
);
fmt
.
Println
(
"var Scripts = map[string] []Range {"
);
...
...
src/pkg/unicode/script_test.go
View file @
fe383848
...
@@ -212,16 +212,16 @@ func TestCategories(t *testing.T) {
...
@@ -212,16 +212,16 @@ func TestCategories(t *testing.T) {
}
}
}
}
func
TestProps
(
t
*
testing
.
T
)
{
func
TestProp
ertie
s
(
t
*
testing
.
T
)
{
notTested
:=
make
(
map
[
string
]
bool
);
notTested
:=
make
(
map
[
string
]
bool
);
for
k
:=
range
Props
{
for
k
:=
range
Prop
ertie
s
{
notTested
[
k
]
=
true
notTested
[
k
]
=
true
}
}
for
i
,
test
:=
range
inPropTest
{
for
i
,
test
:=
range
inPropTest
{
if
_
,
ok
:=
Props
[
test
.
script
];
!
ok
{
if
_
,
ok
:=
Prop
ertie
s
[
test
.
script
];
!
ok
{
t
.
Fatal
(
test
.
script
,
"not a known prop"
)
t
.
Fatal
(
test
.
script
,
"not a known prop"
)
}
}
if
!
Is
(
Props
[
test
.
script
],
test
.
rune
)
{
if
!
Is
(
Prop
ertie
s
[
test
.
script
],
test
.
rune
)
{
t
.
Errorf
(
"IsCategory(%#x, %s) = false, want true
\n
"
,
test
.
rune
,
test
.
script
);
t
.
Errorf
(
"IsCategory(%#x, %s) = false, want true
\n
"
,
test
.
rune
,
test
.
script
);
}
}
notTested
[
test
.
script
]
=
false
,
false
notTested
[
test
.
script
]
=
false
,
false
...
...
src/pkg/unicode/tables.go
View file @
fe383848
...
@@ -2792,8 +2792,8 @@ var (
...
@@ -2792,8 +2792,8 @@ var (
// maketables --props=all --url=http://www.unicode.org/Public/5.1.0/ucd/
// maketables --props=all --url=http://www.unicode.org/Public/5.1.0/ucd/
// DO NOT EDIT
// DO NOT EDIT
// Props is the set of Unicode property tables.
// Prop
ertie
s is the set of Unicode property tables.
var
Props
=
map
[
string
]
[]
Range
{
var
Prop
ertie
s
=
map
[
string
]
[]
Range
{
"Pattern_Syntax"
:
Pattern_Syntax
,
"Pattern_Syntax"
:
Pattern_Syntax
,
"Other_ID_Start"
:
Other_ID_Start
,
"Other_ID_Start"
:
Other_ID_Start
,
"Pattern_White_Space"
:
Pattern_White_Space
,
"Pattern_White_Space"
:
Pattern_White_Space
,
...
...
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