mirror of
https://github.com/openharmony/third_party_rust_unicode-normalization.git
synced 2026-07-18 21:14:29 -04:00
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:
+3
-3
@@ -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
File diff suppressed because it is too large
Load Diff
+1457
-540
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user