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

#35 in Text processing

Download history 986583/week @ 2024-09-27 1032838/week @ 2024-10-04 1040835/week @ 2024-10-11 1175507/week @ 2024-10-18 1191875/week @ 2024-10-25 1101457/week @ 2024-11-01 1154351/week @ 2024-11-08 1216854/week @ 2024-11-15 1055462/week @ 2024-11-22 1079855/week @ 2024-11-29 1421111/week @ 2024-12-06 1227325/week @ 2024-12-13 651206/week @ 2024-12-20 646821/week @ 2024-12-27 1164842/week @ 2025-01-03 1173089/week @ 2025-01-10

3,845,394 downloads per month
Used in 9,233 crates (190 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