Function icu_datagen::keys_from_file
source · [−]Expand description
Parses a file of human-readable key identifiers and returns a
list of DataKey
s.
Unknown key names are ignored.
Example
keys.txt
list/and@1
list/or@1
build.rs
assert_eq!(
icu_datagen::keys_from_file("keys.txt")?,
vec![
icu::list::provider::AndListV1Marker::KEY,
icu::list::provider::OrListV1Marker::KEY,
],
);