8 releases (stable)

2.0.0-beta1 Nov 23, 2024
1.5.1 Jun 24, 2024
1.5.0 May 28, 2024
1.4.0 Nov 16, 2023
1.3.0 Sep 23, 2023

#287 in Internationalization (i18n)

Download history 8430/week @ 2024-09-10 16555/week @ 2024-09-17 40693/week @ 2024-09-24 44943/week @ 2024-10-01 37071/week @ 2024-10-08 10360/week @ 2024-10-15 8174/week @ 2024-10-22 8231/week @ 2024-10-29 8220/week @ 2024-11-05 7373/week @ 2024-11-12 8239/week @ 2024-11-19 6094/week @ 2024-11-26 7434/week @ 2024-12-03 8520/week @ 2024-12-10 7067/week @ 2024-12-17 4619/week @ 2024-12-24

28,951 downloads per month
Used in 34 crates (7 directly)

Unicode-3.0

2MB
29K SLoC

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.


lib.rs:

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")),
    "γειά σου κόσμε"
);

Dependencies

~0.8–1.5MB
~29K SLoC