Crates.io | icu_casemap |
lib.rs | icu_casemap |
version | 1.5.1 |
source | src |
created_at | 2023-09-23 18:52:08.237195 |
updated_at | 2024-06-24 17:39:12.382426 |
description | Unicode case mapping and folding algorithms |
homepage | https://icu4x.unicode.org |
repository | https://github.com/unicode-org/icu4x |
max_upload_size | |
id | 981430 |
size | 252,536 |
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.
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")),
"γειά σου κόσμε"
);
For more information on development, authorship, contributing etc. please visit ICU4X home page
.