Function icu_datagen::keys

source ·
pub fn keys<S: AsRef<str>>(strings: &[S]) -> Vec<DataKey>
Expand description

Parses a list of human-readable key identifiers and returns a list of DataKeys.

Unknown key names are ignored.

Example

assert_eq!(
    icu_datagen::keys(&["list/and@1", "list/or@1"]),
    vec![
        icu::list::provider::AndListV1Marker::KEY,
        icu::list::provider::OrListV1Marker::KEY,
    ],
);