Cldr Numbers v2.7.2 Cldr.Rbnf View Source
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.
Link to this section Summary
Functions
Returns {:ok, rbnf_rules} for a locale or {:error, {Cldr.NoRbnf, info}}
Returns rbnf_rules for a locale or raises an exception if
there are no rules.
Returns the list of locales that that have RBNF defined
Link to this section Functions
for_locale(language_tag, backend)
View Sourcefor_locale(Cldr.Locale.locale_name() | Cldr.LanguageTag.t(), Cldr.backend()) :: {:ok, map()} | {:error, {module(), String.t()}}
Returns {:ok, rbnf_rules} for a locale or {:error, {Cldr.NoRbnf, info}}
localeis any locale name returned byCldr.Rbnf.known_locale_names/1. or aCldr.LanguageTag
Returns rbnf_rules for a locale or raises an exception if
there are no rules.
localeis any locale name returned byCldr.Rbnf.known_locale_names/1. or aCldr.LanguageTag
Returns the list of locales that that have RBNF defined
This list is the set of known locales for which there are rbnf rules defined.