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

#17 in Text processing

Download history 1186606/week @ 2024-10-22 1142558/week @ 2024-10-29 1121580/week @ 2024-11-05 1198710/week @ 2024-11-12 1189876/week @ 2024-11-19 975310/week @ 2024-11-26 1202582/week @ 2024-12-03 1443204/week @ 2024-12-10 1058742/week @ 2024-12-17 565849/week @ 2024-12-24 789714/week @ 2024-12-31 1342829/week @ 2025-01-07 1291313/week @ 2025-01-14 1226084/week @ 2025-01-21 1309697/week @ 2025-01-28 1259284/week @ 2025-02-04

5,325,843 downloads per month
Used in 9,396 crates (194 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