blob: 08cfa3bdaae1ac8649e17d1e89d0aaa85b857566 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
// This file is part of ICU4X. For terms of use, please see the file
// called LICENSE at the top level of the ICU4X source tree
// (online at: https://github.com/unicode-org/icu4x/blob/main/LICENSE ).
#![no_main] // https://github.com/unicode-org/icu4x/issues/395
icu_benchmark_macros::static_setup!();
use icu::list::{ListFormatter, ListLength};
use icu::locid::locale;
#[no_mangle]
fn main(_argc: isize, _argv: *const *const u8) -> isize {
icu_benchmark_macros::main_setup!();
let list_formatter = ListFormatter::try_new_and_with_length_unstable(
&icu_testdata::unstable(),
&locale!("es").into(),
ListLength::Wide,
)
.unwrap();
println!(
"{}",
list_formatter.format(["España", "Francia", "Suiza", "Italia"].iter())
);
0
}
|