Update to Unicode 13

Change version fields to u8 as the maximum value
of each field is 255 according to specification.
This commit is contained in:
Pyfisch
2020-04-13 11:58:40 +02:00
parent 2d54d9a19a
commit bd1fcfbfab
3 changed files with 15742 additions and 14278 deletions
+3 -3
View File
@@ -20,8 +20,8 @@
import collections
import urllib.request
UNICODE_VERSION = "9.0.0"
UCD_URL = "https://www.unicode.org/Public/%s/ucd/" % UNICODE_VERSION
UNICODE_VERSION = "13.0.0"
UCD_URL = "http://www.unicode.org/Public/%s/ucd/" % UNICODE_VERSION
PREAMBLE = """// Copyright 2012-2018 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
@@ -483,7 +483,7 @@ if __name__ == '__main__':
version = "(%s, %s, %s)" % tuple(UNICODE_VERSION.split("."))
out.write("#[allow(unused)]\n")
out.write("pub const UNICODE_VERSION: (u64, u64, u64) = %s;\n\n" % version)
out.write("pub const UNICODE_VERSION: (u8, u8, u8) = %s;\n\n" % version)
gen_combining_class(data.combining_classes, out)
out.write("\n")
+14282 -13735
View File
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff