#unicode #properties #detection #mirroring #bidi

unicode-bidi-mirroring

Unicode Bidi Mirroring property detection

3 releases (breaking)

0.3.0 Jun 17, 2024
0.2.0 Feb 7, 2024
0.1.0 Jul 17, 2020

#316 in Text processing

Download history 23336/week @ 2024-03-14 23279/week @ 2024-03-21 20890/week @ 2024-03-28 18321/week @ 2024-04-04 19387/week @ 2024-04-11 20160/week @ 2024-04-18 21943/week @ 2024-04-25 24055/week @ 2024-05-02 23050/week @ 2024-05-09 21546/week @ 2024-05-16 19739/week @ 2024-05-23 19367/week @ 2024-05-30 27074/week @ 2024-06-06 41290/week @ 2024-06-13 39804/week @ 2024-06-20 37305/week @ 2024-06-27

148,285 downloads per month
Used in 234 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