#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

#377 in Text processing

Download history 14556/week @ 2023-12-08 15264/week @ 2023-12-15 9385/week @ 2023-12-22 12448/week @ 2023-12-29 14229/week @ 2024-01-05 19071/week @ 2024-01-12 20308/week @ 2024-01-19 21758/week @ 2024-01-26 21784/week @ 2024-02-02 22087/week @ 2024-02-09 24626/week @ 2024-02-16 22964/week @ 2024-02-23 21706/week @ 2024-03-01 23003/week @ 2024-03-08 22882/week @ 2024-03-15 20360/week @ 2024-03-22

90,936 downloads per month
Used in 201 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