icu_casemap 1.5.1

Unicode case mapping and folding algorithms
Documentation

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::locid::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.