tree: bdc0e76d5600adaae9c1ea2d4cfea8c96146b2b7 [path history] [tgz]
  1. benches/
  2. examples/
  3. src/
  4. tests/
  5. .android-checksum.json
  6. .cargo-checksum.json
  7. Android.bp
  8. Cargo.lock
  9. Cargo.toml
  10. cargo_embargo.json
  11. icu4x_bionic_dep.bp.fragment
  12. LICENSE
  13. METADATA
  14. MODULE_LICENSE_UNICODE_3
  15. README.md
crates/icu_casemap/README.md

icu_casemap crates.io

Case mapping for Unicode characters and strings.

This module is published as its own crate (icu_casemap) and as part of the icu crate. See the latter for more details on the ICU4X project.

Examples

use icu::casemap::CaseMapper;
use icu::locale::langid;

let cm = CaseMapper::new();

assert_eq!(
    cm.uppercase_to_string("hello world", &langid!("und")),
    "HELLO WORLD"
);
assert_eq!(
    cm.lowercase_to_string("Γειά σου Κόσμε", &langid!("und")),
    "γειά σου κόσμε"
);

More Information

For more information on development, authorship, contributing etc. please visit ICU4X home page.