#unicode #properties #detection #mirroring #bidi

unicode-bidi-mirroring

Unicode Bidi Mirroring property detection

2 unstable releases

0.2.0 Feb 7, 2024
0.1.0 Jul 17, 2020

#362 in Text processing

Download history 22002/week @ 2024-01-16 20442/week @ 2024-01-23 21427/week @ 2024-01-30 22256/week @ 2024-02-06 22729/week @ 2024-02-13 25445/week @ 2024-02-20 21360/week @ 2024-02-27 21534/week @ 2024-03-05 24518/week @ 2024-03-12 22799/week @ 2024-03-19 21337/week @ 2024-03-26 18895/week @ 2024-04-02 18579/week @ 2024-04-09 20130/week @ 2024-04-16 21403/week @ 2024-04-23 19362/week @ 2024-04-30

82,238 downloads per month
Used in 214 crates (2 directly)

MIT/Apache

14KB
388 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