#properties #unicode #bidi #mirroring #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

#278 in Text processing

Download history 51282/week @ 2024-07-13 50615/week @ 2024-07-20 44466/week @ 2024-07-27 42089/week @ 2024-08-03 46298/week @ 2024-08-10 42028/week @ 2024-08-17 40011/week @ 2024-08-24 43660/week @ 2024-08-31 42153/week @ 2024-09-07 40920/week @ 2024-09-14 56296/week @ 2024-09-21 55361/week @ 2024-09-28 50654/week @ 2024-10-05 43439/week @ 2024-10-12 42220/week @ 2024-10-19 47466/week @ 2024-10-26

192,843 downloads per month
Used in 306 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