-
-
Notifications
You must be signed in to change notification settings - Fork 131
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for case insensitivity (#198)
* Create the `IgnoreFlags` structure * Add the `IgnoreFlags` structure * Parsing logic of `IgnoreFlags` * Add `ApplieIgnoreFlags` trait * Add `ApplieIgnoreFlags` trait * Implementation of that trait for a whole lot of structures * Updated `lib.rs` to take the ignore flags in account * Add tests for `ignore(case/ascii_case)` * Remove the `ApplieIgnoreFlags` trait * Remove the `ApplieIgnoreFlags` trait -> Replaced with with `MakeAsciiInsensitive` trait which serves the same purpose but only for the flag `IgnoreAsciiCase`. * Add ignore flags support for `to_mir` * `Literal::to_mir` now takes ignore flags and parses mir following those flags. * Add `Mir::utf8_ignore_case` and `Mir::binary_ignore_case` * Add `Literal::escape_regex` * Add a simple test for escaped regex
- Loading branch information
Showing
6 changed files
with
820 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.