7 stable releases

1.5.1 Jun 24, 2024
1.5.0 May 28, 2024
1.4.1 Jun 24, 2024
1.4.0 Nov 16, 2023
1.3.0 Sep 23, 2023

#254 in Internationalization (i18n)

Download history 5661/week @ 2024-07-13 4285/week @ 2024-07-20 7084/week @ 2024-07-27 7654/week @ 2024-08-03 10863/week @ 2024-08-10 7542/week @ 2024-08-17 7403/week @ 2024-08-24 7203/week @ 2024-08-31 8750/week @ 2024-09-07 9221/week @ 2024-09-14 39530/week @ 2024-09-21 44588/week @ 2024-09-28 39464/week @ 2024-10-05 16349/week @ 2024-10-12 8086/week @ 2024-10-19 6274/week @ 2024-10-26

77,235 downloads per month
Used in 28 crates (6 directly)

Unicode-3.0

2MB
28K 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.7–1.4MB
~27K SLoC