mirror of
https://gitee.com/openharmony/third_party_rust_regex
synced 2025-04-06 20:21:46 +00:00

In commit 56ea4a, char classes were changed so that case folding them stored all possible variants in the class ranges. This makes it possible to drastically simplify the compiler to the point where case folding flags can be completely removed. This has two major implications for performance: 1. Matching engines no longer need to do case folding on the input. 2. Since case folding is now part of the automata, literal prefix optimizations are now automatically applied even to regexes with (?i). This makes several changes in the public API of regex-syntax. Namely, the `casei` flag has been removed from the `CharClass` expression and the corresponding `is_case_insensitive` method has been removed.