#unicode

unicode-bidi-mirroring

Unicode Bidi Mirroring propery detection

1 unstable release

0.1.0 Jul 17, 2020

#241 in #unicode

Download history 4392/week @ 2022-06-08 3985/week @ 2022-06-15 3656/week @ 2022-06-22 3816/week @ 2022-06-29 4336/week @ 2022-07-06 3793/week @ 2022-07-13 3736/week @ 2022-07-20 5679/week @ 2022-07-27 5066/week @ 2022-08-03 5073/week @ 2022-08-10 5251/week @ 2022-08-17 4515/week @ 2022-08-24 5015/week @ 2022-08-31 6361/week @ 2022-09-07 8444/week @ 2022-09-14 4311/week @ 2022-09-21

24,995 downloads per month
Used in 54 crates (2 directly)

MIT/Apache

13KB
385 lines

unicode-bidi-mirroring

Crates.io Documentation

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);

License

Licensed under either of

at your option.

Contribution

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.

No runtime deps