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

#2 in Internationalization (i18n)

Download history 1337846/week @ 2024-12-05 1295542/week @ 2024-12-12 778368/week @ 2024-12-19 574945/week @ 2024-12-26 1080710/week @ 2025-01-02 1400224/week @ 2025-01-09 1210841/week @ 2025-01-16 1259921/week @ 2025-01-23 1373753/week @ 2025-01-30 1546836/week @ 2025-02-06 1401910/week @ 2025-02-13 1614650/week @ 2025-02-20 1573862/week @ 2025-02-27 1886818/week @ 2025-03-06 1811631/week @ 2025-03-13 2088342/week @ 2025-03-20

7,615,906 downloads per month
Used in 9,740 crates (199 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