4 stable releases

1.4.0 Nov 16, 2023
1.3.2 Oct 3, 2023
1.3.1 Oct 2, 2023
1.3.0 Sep 23, 2023

#362 in Internationalization (i18n)

Download history 1794/week @ 2024-01-06 1606/week @ 2024-01-13 2105/week @ 2024-01-20 2542/week @ 2024-01-27 2670/week @ 2024-02-03 2861/week @ 2024-02-10 3665/week @ 2024-02-17 3024/week @ 2024-02-24 2357/week @ 2024-03-02 2401/week @ 2024-03-09 1896/week @ 2024-03-16 1925/week @ 2024-03-23 1817/week @ 2024-03-30 2108/week @ 2024-04-06 1839/week @ 2024-04-13 1443/week @ 2024-04-20

7,453 downloads per month
Used in 18 crates (5 directly)

Custom license

2MB
30K 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_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.


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

Dependencies

~0.8–1.4MB
~29K SLoC