| Crates.io | unicode-bidi-mirroring |
| lib.rs | unicode-bidi-mirroring |
| version | 0.4.0 |
| created_at | 2020-07-17 16:55:58.130036+00 |
| updated_at | 2024-09-26 05:42:51.063617+00 |
| description | Unicode Bidi Mirroring property detection |
| homepage | |
| repository | https://github.com/RazrFalcon/unicode-bidi-mirroring |
| max_upload_size | |
| id | 266293 |
| size | 25,314 |
This library implements Unicode Bidi Mirroring property detection.
use unicode_bidi_mirroring::*;
assert_eq!(get_mirrored('A'), None);
assert_eq!(get_mirrored('\u{2039}'), Some('\u{203A}'));
assert_eq!(get_mirrored('\u{203A}'), Some('\u{2039}'));
assert_eq!(is_mirroring('A'), false);
assert_eq!(is_mirroring('\u{29C4}'), true);
assert_eq!(is_mirroring('\u{22FF}'), true);
Licensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.