Debian Codegraph @

third_party/rust/unicase/README.md

raw
1 # unicase
2
3 [![Build Status](https://travis-ci.org/seanmonstar/unicase.svg?branch=master)](https://travis-ci.org/seanmonstar/unicase)
4
5 [Documentation](https://docs.rs/unicase)
6
7 Compare strings when case is not important (using Unicode Case-folding).
8
9 ```rust
10 // ignore ASCII case
11 let a = UniCase::new("foobar");
12 let b = UniCase::new("FOOBAR");
13
14 assert_eq!(a, b);
15
16 // using unicode case-folding
17 let c = UniCase::new("Maße")
18 let d = UniCase::new("MASSE");
19 assert_eq!(c, d);
20 ```
21
22 ## License
23
24 Licensed under either of
25
26 - Apache License, Version 2.0 ([LICENSE-APACHE](LICENSE-APACHE) or http://apache.org/licenses/LICENSE-2.0)
27 - MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)
28
29 ### Contribution
30
31 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.