9 releases (stable)

2.0.0-beta2 Feb 26, 2025
2.0.0-beta1 Nov 23, 2024
1.5.1 Jun 24, 2024
1.5.0 May 28, 2024
1.3.0 Sep 23, 2023

#207 in Internationalization (i18n)

Download history 7144/week @ 2024-12-01 8275/week @ 2024-12-08 7810/week @ 2024-12-15 4666/week @ 2024-12-22 4869/week @ 2024-12-29 7762/week @ 2025-01-05 7981/week @ 2025-01-12 8843/week @ 2025-01-19 7254/week @ 2025-01-26 10081/week @ 2025-02-02 9130/week @ 2025-02-09 9313/week @ 2025-02-16 10583/week @ 2025-02-23 10398/week @ 2025-03-02 10191/week @ 2025-03-09 8846/week @ 2025-03-16

40,852 downloads per month
Used in 55 crates (9 directly)

Unicode-3.0

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::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