Cldr v0.1.3 Cldr.Rbnf
Functions to implement Rules Based Number Formatting (rbnf)
During compilation RBNF rules are extracted and generated
as function bodies by Cldr.Rbnf.Ordinal, Cldr.Rbnf.Cardinal
and Cldr.Rbnf.NumberSystem.
The functions in this module would not normally be of common use outside of supporting the compilation phase.
Summary
Functions
Returns a map that merges all rules by the primary dimension of RuleGroup, within which rbnf rules are keyed by locale
Returns the rbnf rules for a locale or {:error, :rbnf_file_not_found}
Returns the list of locales that that have RBNF defined
Functions
Returns a map that merges all rules by the primary dimension of RuleGroup, within which rbnf rules are keyed by locale.
This function is primarily intended to support compile-time generation of functions to process rbnf rules.
Returns the rbnf rules for a locale or {:error, :rbnf_file_not_found}
localeis any locale returned byRbnf.known_locales/0.
Note that for_locale/1 does not raise if the locale does not exist
like the majority of Cldr. This is by design since the set of locales
that have rbnf rules is substantially less than the set of locales
supported by Cldr.