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

#23 in Text processing

Download history 1309622/week @ 2025-01-28 1497141/week @ 2025-02-04 1445050/week @ 2025-02-11 1625120/week @ 2025-02-18 1439547/week @ 2025-02-25 1874217/week @ 2025-03-04 1801505/week @ 2025-03-11 2201960/week @ 2025-03-18 1931252/week @ 2025-03-25 1636198/week @ 2025-04-01 1661684/week @ 2025-04-08 1412060/week @ 2025-04-15 1485671/week @ 2025-04-22 1399540/week @ 2025-04-29 1481439/week @ 2025-05-06 1218788/week @ 2025-05-13

5,789,887 downloads per month
Used in 10,136 crates (201 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