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

#15 in Text processing

Download history 1175674/week @ 2024-11-20 980592/week @ 2024-11-27 1255556/week @ 2024-12-04 1384206/week @ 2024-12-11 933183/week @ 2024-12-18 569394/week @ 2024-12-25 930532/week @ 2025-01-01 1363866/week @ 2025-01-08 1246748/week @ 2025-01-15 1245278/week @ 2025-01-22 1340455/week @ 2025-01-29 1521170/week @ 2025-02-05 1420781/week @ 2025-02-12 1632165/week @ 2025-02-19 1441798/week @ 2025-02-26 1615276/week @ 2025-03-05

6,394,758 downloads per month
Used in 9,628 crates (196 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