#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

#234 in Text processing

Download history 30506/week @ 2024-11-15 28483/week @ 2024-11-22 38615/week @ 2024-11-29 37060/week @ 2024-12-06 35286/week @ 2024-12-13 23139/week @ 2024-12-20 27817/week @ 2024-12-27 33055/week @ 2025-01-03 45853/week @ 2025-01-10 45513/week @ 2025-01-17 41126/week @ 2025-01-24 48626/week @ 2025-01-31 58272/week @ 2025-02-07 45307/week @ 2025-02-14 46926/week @ 2025-02-21 40449/week @ 2025-02-28

200,018 downloads per month
Used in 539 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