Cldr v0.1.0 Cldr.Rbnf.NumberSystem

Functions to implement the number system rule-based-number-format rules of CLDR.

These rules are defined only on the “root” locale and represent specialised number formatting.

The standard public API for RBNF is via the Cldr.Number.to_string/2 function.

The functions on this module are defined at compile time based upon the RBNF rules defined in the Unicode CLDR data repository. Available rules are identified by:

iex(10)> Cldr.Rbnf.NumberSystem.rule_sets "root"
[:tamil, :roman_upper, :roman_lower, :hebrew_item, :hebrew_0_99, :hebrew,
:greek_upper, :greek_lower, :georgian, :ethiopic_p1, :ethiopic,
:cyrillic_lower_1_10, :cyrillic_lower, :armenian_upper, :armenian_lower]

A rule can then be invoked on an available rule_set. For example

iex> Cldr.Rbnf.NumberSystem.roman_upper 123, "root"
"CXXIII"

This call is equivalent to the call through the public API of:

iex> Cldr.Number.to_string 123, format: :roman
"CXXIII"

Summary

Functions

armenian_lower(number, binary)
armenian_upper(number, binary)
cyrillic_lower(number, binary)
cyrillic_lower_1_10(number, binary)
cyrillic_lower_final(number, binary)
cyrillic_lower_post(number, binary)
cyrillic_lower_thousands(number, binary)
ethiopic(number, binary)
ethiopic_p(number, binary)
ethiopic_p1(number, binary)
ethiopic_p2(number, binary)
ethiopic_p3(number, binary)
georgian(number, binary)
greek_lower(number, binary)
greek_numeral_majuscules(number, binary)
greek_numeral_minuscules(number, binary)
greek_upper(number, binary)
hebrew(number, binary)
hebrew_0_99(number, binary)
hebrew_item(number, binary)
hebrew_thousands(number, binary)
roman_lower(number, binary)
roman_upper(number, binary)
rule_sets(locale)
tamil(number, binary)
tamil_thousands(number, binary)