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

#237 in Text processing

Download history 40944/week @ 2024-08-21 40669/week @ 2024-08-28 45447/week @ 2024-09-04 39589/week @ 2024-09-11 48463/week @ 2024-09-18 56216/week @ 2024-09-25 55477/week @ 2024-10-02 44175/week @ 2024-10-09 43516/week @ 2024-10-16 34987/week @ 2024-10-23 36640/week @ 2024-10-30 33959/week @ 2024-11-06 30655/week @ 2024-11-13 28435/week @ 2024-11-20 34245/week @ 2024-11-27 43987/week @ 2024-12-04

141,994 downloads per month
Used in 411 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