1 // This file is part of ICU4X. For terms of use, please see the file 2 // called LICENSE at the top level of the ICU4X source tree 3 // (online at: https://github.com/unicode-org/icu4x/blob/main/LICENSE ). 4 5 #![no_main] // https://github.com/unicode-org/icu4x/issues/395 6 icu_benchmark_macros::instrument!(); 7 use icu_benchmark_macros::println; 8 9 use icu::casemap::CaseMapper; 10 use icu_locale_core::langid; 11 main()12fn main() { 13 let cm = CaseMapper::new(); 14 15 println!( 16 r#"The uppercase of "hello world" is "{}""#, 17 cm.uppercase_to_string("hello world", &langid!("und")) 18 ); 19 println!( 20 r#"The lowercase of "Γειά σου Κόσμε" is "{}""#, 21 cm.lowercase_to_string("Γειά σου Κόσμε", &langid!("und")) 22 ); 23 } 24