#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

#137 in Text processing

Download history 48561/week @ 2024-10-07 42838/week @ 2024-10-14 38247/week @ 2024-10-21 32873/week @ 2024-10-28 40566/week @ 2024-11-04 29145/week @ 2024-11-11 29615/week @ 2024-11-18 30114/week @ 2024-11-25 39691/week @ 2024-12-02 36036/week @ 2024-12-09 34825/week @ 2024-12-16 21990/week @ 2024-12-23 27634/week @ 2024-12-30 40213/week @ 2025-01-06 44333/week @ 2025-01-13 53063/week @ 2025-01-20

169,025 downloads per month
Used in 487 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