#unicode #mirroring #bidi #properties #detection

unicode-bidi-mirroring

Unicode Bidi Mirroring property detection

4 releases (breaking)

0.4.0 Sep 26, 2024
0.3.0 Jun 17, 2024
0.2.0 Feb 7, 2024
0.1.0 Jul 17, 2020

#140 in Text processing

Download history 43530/week @ 2024-07-30 45456/week @ 2024-08-06 41919/week @ 2024-08-13 41324/week @ 2024-08-20 40137/week @ 2024-08-27 45163/week @ 2024-09-03 41031/week @ 2024-09-10 44575/week @ 2024-09-17 57282/week @ 2024-09-24 55747/week @ 2024-10-01 45555/week @ 2024-10-08 42692/week @ 2024-10-15 37447/week @ 2024-10-22 34068/week @ 2024-10-29 38002/week @ 2024-11-05 24103/week @ 2024-11-12

140,963 downloads per month
Used in 316 crates (2 directly)

MIT/Apache

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