25 releases (stable)

Uses old Rust 2015

2.7.0 Aug 21, 2023
2.6.0 Nov 12, 2019
2.5.1 Sep 3, 2019
2.4.0 Apr 30, 2019
0.0.5 Feb 20, 2015

#10 in Text processing

Download history 846211/week @ 2024-04-02 799258/week @ 2024-04-09 855653/week @ 2024-04-16 865999/week @ 2024-04-23 808527/week @ 2024-04-30 819846/week @ 2024-05-07 857262/week @ 2024-05-14 841026/week @ 2024-05-21 884711/week @ 2024-05-28 871054/week @ 2024-06-04 916270/week @ 2024-06-11 863328/week @ 2024-06-18 913211/week @ 2024-06-25 812562/week @ 2024-07-02 885192/week @ 2024-07-09 734227/week @ 2024-07-16

3,500,836 downloads per month
Used in 8,277 crates (181 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