27 releases (stable)

2.8.1 Dec 24, 2024
2.8.0 Oct 18, 2024
2.7.0 Aug 21, 2023
2.6.0 Nov 12, 2019
0.0.5 Feb 20, 2015

#13 in Text processing

Download history 651206/week @ 2024-12-20 646821/week @ 2024-12-27 1164842/week @ 2025-01-03 1407390/week @ 2025-01-10 1188372/week @ 2025-01-17 1264292/week @ 2025-01-24 1418294/week @ 2025-01-31 1546218/week @ 2025-02-07 1467880/week @ 2025-02-14 1534954/week @ 2025-02-21 1709894/week @ 2025-02-28 1822883/week @ 2025-03-07 1824360/week @ 2025-03-14 2404487/week @ 2025-03-21 1574115/week @ 2025-03-28 1691010/week @ 2025-04-04

7,836,256 downloads per month
Used in 9,871 crates (200 directly)

MIT/Apache

98KB
2.5K SLoC

unicase

crates.io Released API docs MIT licensed CI

Compare strings when case is not important (using Unicode Case-folding).

// ignore ASCII case
let a = UniCase::new("foobar");
let b = UniCase::new("FOOBAR");

assert_eq!(a, b);

// using unicode case-folding
let c = UniCase::new("Maße")
let d = UniCase::new("MASSE");
assert_eq!(c, d);

License

Licensed under either of

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

Features