icu_casemap

Crates.ioicu_casemap
lib.rsicu_casemap
version2.0.0-beta1
sourcesrc
created_at2023-09-23 18:52:08.237195
updated_at2024-11-23 02:16:28.582981
descriptionUnicode case mapping and folding algorithms
homepagehttps://icu4x.unicode.org
repositoryhttps://github.com/unicode-org/icu4x
max_upload_size
id981430
size250,767
icu4x-release (github:unicode-org:icu4x-release)

documentation

README

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.

Commit count: 3709

cargo fmt