diff options
author | Raiki Tamura <tamaron1203@gmail.com> | 2023-12-02 21:01:59 +0900 |
---|---|---|
committer | P-E-P <32375388+P-E-P@users.noreply.github.com> | 2024-01-29 12:09:31 +0000 |
commit | d6e10d2dabaf689ef36e628ee6d54cd460664615 (patch) | |
tree | ce4161f6bc6c3b6439a98646371a4de2d08c1257 /gcc/rust/rust-lang.cc | |
parent | bef49670f6248e30ab888ecdbd52a8a1612e25ef (diff) | |
download | gcc-d6e10d2dabaf689ef36e628ee6d54cd460664615.zip gcc-d6e10d2dabaf689ef36e628ee6d54cd460664615.tar.gz gcc-d6e10d2dabaf689ef36e628ee6d54cd460664615.tar.bz2 |
gccrs: Implement quick-check for Unicode
gcc/rust/ChangeLog:
* rust-lang.cc (run_rust_tests): Add test.
* rust-system.h: Add <algorithm>.
* util/make-rust-unicode.py: Output NFC_Quick_Check table.
* util/rust-codepoint.h (struct Codepoint): Add is_supplementary
method.
* util/rust-unicode-data.h: Generated.
* util/rust-unicode.cc (binary_search_sorted_array): Removed.
(lookup_cc): Remove namespace.
(is_alphabetic): Use std::binary_search
(nfc_quick_check): New function.
(nfc_normalize): Use nfc_quick_check.
(is_nfc_qc_maybe): New function.
(is_nfc_qc_no): New function.
(rust_nfc_qc_test): New test.
* util/rust-unicode.h (is_nfc_qc_no): New function.
(is_nfc_qc_maybe): New function.
(enum class): New enum class.
(nfc_quick_check): New function.
(rust_nfc_qc_test): New test.
Signed-off-by: Raiki Tamura <tamaron1203@gmail.com>
Diffstat (limited to 'gcc/rust/rust-lang.cc')
-rw-r--r-- | gcc/rust/rust-lang.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/rust/rust-lang.cc b/gcc/rust/rust-lang.cc index 8390256..a167d50 100644 --- a/gcc/rust/rust-lang.cc +++ b/gcc/rust/rust-lang.cc @@ -441,6 +441,7 @@ run_rust_tests () { // Call tests for the rust frontend here rust_input_source_test (); + rust_nfc_qc_test (); rust_utf8_normalize_test (); rust_punycode_encode_test (); rust_cfg_parser_test (); |