#unicode

unicode-bidi-mirroring

Unicode Bidi Mirroring propery detection

1 unstable release

0.1.0 Jul 17, 2020

#143 in #unicode

Download history 1212/week @ 2020-12-29 2453/week @ 2021-01-05 1835/week @ 2021-01-12 1051/week @ 2021-01-19 1078/week @ 2021-01-26 1235/week @ 2021-02-02 1531/week @ 2021-02-09 1531/week @ 2021-02-16 1229/week @ 2021-02-23 1165/week @ 2021-03-02 1512/week @ 2021-03-09 2299/week @ 2021-03-16 1745/week @ 2021-03-23 2089/week @ 2021-03-30 2211/week @ 2021-04-06 2090/week @ 2021-04-13

5,057 downloads per month
Used in 19 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