Function yharnam::expand_format_functions[][src]

pub fn expand_format_functions(input: &str, locale_code: &str) -> String

Expands all format functions in a given string, using pluralisation rules specified by the given locale (as an IETF BCP-47 language tag).

Panics

When the string contains a plural or ordinal format function, but the specified value cannot be parsed as a number.