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

#11 in Text processing

Download history 652438/week @ 2023-12-11 562619/week @ 2023-12-18 328248/week @ 2023-12-25 557827/week @ 2024-01-01 695549/week @ 2024-01-08 718543/week @ 2024-01-15 740751/week @ 2024-01-22 799066/week @ 2024-01-29 779669/week @ 2024-02-05 793140/week @ 2024-02-12 816914/week @ 2024-02-19 881797/week @ 2024-02-26 856108/week @ 2024-03-04 836989/week @ 2024-03-11 830515/week @ 2024-03-18 777173/week @ 2024-03-25

3,352,316 downloads per month
Used in 7,824 crates (174 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