Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(73)

Side by Side Diff: src/pkg/unicode/maketables.go

Issue 65400044: code review 65400044: unicode: upgrade to Unicode 6.3.0 (Closed)
Patch Set: diff -r 7f2863716967 https://code.google.com/p/go Created 11 years, 1 month ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/pkg/regexp/syntax/parse_test.go ('k') | src/pkg/unicode/script_test.go » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2009 The Go Authors. All rights reserved. 1 // Copyright 2009 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style 2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file. 3 // license that can be found in the LICENSE file.
4 4
5 // +build ignore 5 // +build ignore
6 6
7 // Unicode table generator. 7 // Unicode table generator.
8 // Data read from the web. 8 // Data read from the web.
9 9
10 package main 10 package main
(...skipping 22 matching lines...) Expand all
33 printScriptOrProperty(true) 33 printScriptOrProperty(true)
34 printCases() 34 printCases()
35 printLatinProperties() 35 printLatinProperties()
36 printCasefold() 36 printCasefold()
37 printSizes() 37 printSizes()
38 } 38 }
39 39
40 var dataURL = flag.String("data", "", "full URL for UnicodeData.txt; defaults to --url/UnicodeData.txt") 40 var dataURL = flag.String("data", "", "full URL for UnicodeData.txt; defaults to --url/UnicodeData.txt")
41 var casefoldingURL = flag.String("casefolding", "", "full URL for CaseFolding.tx t; defaults to --url/CaseFolding.txt") 41 var casefoldingURL = flag.String("casefolding", "", "full URL for CaseFolding.tx t; defaults to --url/CaseFolding.txt")
42 var url = flag.String("url", 42 var url = flag.String("url",
43 » "http://www.unicode.org/Public/6.2.0/ucd/", 43 » "http://www.unicode.org/Public/6.3.0/ucd/",
44 "URL of Unicode database directory") 44 "URL of Unicode database directory")
45 var tablelist = flag.String("tables", 45 var tablelist = flag.String("tables",
46 "all", 46 "all",
47 "comma-separated list of which tables to generate; can be letter") 47 "comma-separated list of which tables to generate; can be letter")
48 var scriptlist = flag.String("scripts", 48 var scriptlist = flag.String("scripts",
49 "all", 49 "all",
50 "comma-separated list of which script tables to generate") 50 "comma-separated list of which script tables to generate")
51 var proplist = flag.String("props", 51 var proplist = flag.String("props",
52 "all", 52 "all",
53 "comma-separated list of which property tables to generate") 53 "comma-separated list of which property tables to generate")
(...skipping 1257 matching lines...) Expand 10 before | Expand all | Expand 10 after
1311 return 1311 return
1312 } 1312 }
1313 fmt.Println() 1313 fmt.Println()
1314 fmt.Printf("// Range entries: %d 16-bit, %d 32-bit, %d total.\n", range1 6Count, range32Count, range16Count+range32Count) 1314 fmt.Printf("// Range entries: %d 16-bit, %d 32-bit, %d total.\n", range1 6Count, range32Count, range16Count+range32Count)
1315 range16Bytes := range16Count * 3 * 2 1315 range16Bytes := range16Count * 3 * 2
1316 range32Bytes := range32Count * 3 * 4 1316 range32Bytes := range32Count * 3 * 4
1317 fmt.Printf("// Range bytes: %d 16-bit, %d 32-bit, %d total.\n", range16B ytes, range32Bytes, range16Bytes+range32Bytes) 1317 fmt.Printf("// Range bytes: %d 16-bit, %d 32-bit, %d total.\n", range16B ytes, range32Bytes, range16Bytes+range32Bytes)
1318 fmt.Println() 1318 fmt.Println()
1319 fmt.Printf("// Fold orbit bytes: %d pairs, %d bytes\n", foldPairCount, f oldPairCount*2*2) 1319 fmt.Printf("// Fold orbit bytes: %d pairs, %d bytes\n", foldPairCount, f oldPairCount*2*2)
1320 } 1320 }
OLDNEW
« no previous file with comments | « src/pkg/regexp/syntax/parse_test.go ('k') | src/pkg/unicode/script_test.go » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b