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

#12 in Text processing

Download history 675773/week @ 2024-01-05 707841/week @ 2024-01-12 760336/week @ 2024-01-19 757950/week @ 2024-01-26 789847/week @ 2024-02-02 790088/week @ 2024-02-09 797818/week @ 2024-02-16 880292/week @ 2024-02-23 870056/week @ 2024-03-01 846996/week @ 2024-03-08 834560/week @ 2024-03-15 823382/week @ 2024-03-22 828784/week @ 2024-03-29 795935/week @ 2024-04-05 841529/week @ 2024-04-12 707046/week @ 2024-04-19

3,329,886 downloads per month
Used in 7,909 crates (178 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