Skip to main content

template_format_kinds

Function template_format_kinds 

Source
pub fn template_format_kinds(template: &str) -> BTreeMap<&str, FormatKind>
Expand description

Every placeholder’s (name, FormatKind) in template, silently dropping any placeholder whose ICU parse fails — that failure is check_entry_icu_syntax‘s job to report (once), not this pure helper’s, so a caller comparing two locales’ templates never double-reports a malformed one.