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

#357 in Internationalization (i18n)

Download history 1489/week @ 2023-12-11 1684/week @ 2023-12-18 1072/week @ 2023-12-25 1860/week @ 2024-01-01 1780/week @ 2024-01-08 1653/week @ 2024-01-15 2148/week @ 2024-01-22 2537/week @ 2024-01-29 2893/week @ 2024-02-05 2927/week @ 2024-02-12 3804/week @ 2024-02-19 2556/week @ 2024-02-26 2427/week @ 2024-03-04 2322/week @ 2024-03-11 1931/week @ 2024-03-18 1876/week @ 2024-03-25

8,708 downloads per month
Used in 17 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