Cldr Numbers v2.4.4 API Reference

Modules

Formats numbers and currencies based upon CLDR's decimal formats specification

Functions to manage the collection of number patterns defined in Cldr

Compiles number patterns with a lexer/parser into patterns for fast runtime interpretation

Describes the metadata that drives number formatting and provides functions to update the struct

Number formatter for the :currency :long format

Formats a number according to a locale-specific predefined format or a user-defined format

Formats a number according to the locale-specific :short formats

Functions to manage the symbol definitions for a locale and number system

Functions to manage number systems which describe the numbering characteristics for a locale

Transliteration for digits and separators

Functions to implement Rules Based Number Formatting (rbnf)

Macro to define the interpreter for the compiled RBNF rules specific to a rule group (Ordinal, Spellout, NumberingSystem)

Tokenizer and Parser for RBNF rules

Exceptions

Exception raised when an attempt is made to define a currency that already exists

Exception raised when an attempt is made to define a currency code that is invalid

Exception raised when when there are no number symbols for a locale and number system

Exception raised when an attempt is made to invoke an RBNF rule that is not supported for a given locale

Exception raised when an attempt is made to invoke an RBNF rule for a number that is not supported by that rule