mirror of
https://github.com/openharmony/third_party_rust_unicode-normalization.git
synced 2026-07-18 21:14:29 -04:00
Fix is_combining_mark table data
* In `scripts/unicode.py`, the data used to generate `is_combining_mark()` was being passed to the emit function incorrectly, resulting in the table containing some other data instead. The script is fixed and new `tables.rs` is generated. * Add test for `is_combining_mark()` for ASCII chars, as well as a couple of random chars based on the reported issue. Fix https://github.com/unicode-rs/unicode-normalization/issues/16
This commit is contained in:
+1
-1
@@ -350,7 +350,7 @@ pub struct Slice {
|
||||
|
||||
""")
|
||||
|
||||
emit_table(f, "general_category_mark", combine, "&'static [(char, char)]", is_pub=False,
|
||||
emit_table(f, "general_category_mark", general_category_mark, "&'static [(char, char)]", is_pub=False,
|
||||
pfun=lambda x: "(%s,%s)" % (escape_char(x[0]), escape_char(x[1])))
|
||||
|
||||
f.write("""
|
||||
|
||||
Reference in New Issue
Block a user