File tree Expand file tree Collapse file tree 6 files changed +215
-87
lines changed Expand file tree Collapse file tree 6 files changed +215
-87
lines changed Original file line number Diff line number Diff line change 1
1
maketables
2
+ maketables.exe
2
3
UnicodeData.txt
3
4
CaseFolding.txt
Original file line number Diff line number Diff line change
1
+ {
2
+ // See https://go.microsoft.com/fwlink/?LinkId=733558
3
+ // for the documentation about the tasks.json format
4
+ "version" : " 2.0.0" ,
5
+ "tasks" : [
6
+ {
7
+ "label" : " Run make" ,
8
+ "type" : " shell" ,
9
+ "command" : " make tables" ,
10
+ "problemMatcher" : [],
11
+ "group" : {
12
+ "kind" : " build" ,
13
+ "isDefault" : true
14
+ }
15
+ }
16
+ ]
17
+ }
Original file line number Diff line number Diff line change 1
- Tables.cs : UnicodeData.txt maketables.go CaseFolding.txt Makefile maketables
2
- ./maketables --tables=all > Tables.cs
1
+ ifeq ($(OS ) ,Windows_NT)
2
+ EXEC := maketables --tables=all --url=https://www.unicode.org/Public/15.0.0/ucd/ > Tables.cs
3
+ else
4
+ EXEC := ./maketables --tables=all --url=https://www.unicode.org/Public/15.0.0/ucd/ > Tables.cs
5
+ endif
3
6
4
- UnicodeData.txt :
5
- curl -O http://www.unicode.org/Public/14.0.0/ucd/UnicodeData.txt
7
+ tables : unicodeData caseFolding maketables
8
+ $( EXEC )
6
9
7
- CaseFolding.txt :
8
- curl -O http://www.unicode.org/Public/14.0.0/ucd/CaseFolding.txt
10
+ unicodeData :
11
+ curl -O https://www.unicode.org/Public/15.0.0/ucd/UnicodeData.txt
12
+
13
+ caseFolding :
14
+ curl -O https://www.unicode.org/Public/15.0.0/ucd/CaseFolding.txt
9
15
10
16
maketables : maketables.go
11
17
go build maketables.go
Original file line number Diff line number Diff line change 1
1
To regenerate the Tables.cs file from the reference unicode files, execute the Makefile
2
- which will dump the updated tables.
2
+ with the command ` make tables ` , which will dump the updated tables:
3
3
4
4
There is some work to be done to dump the tables as a binary blob,
5
5
without going through the various data structures that we have now, it would
You can’t perform that action at this time.
0 commit comments