Cldr.Number.Format.Compiler.parse
You're seeing just the function
parse
, go back to Cldr.Number.Format.Compiler module for more information.
Parse a number format definition
Using a yexx lexer, parse a nunber format definition into list of elements we can then interpret to format a number.
Example
iex> Cldr.Number.Format.Compiler.parse "¤ #,##0.00;¤-#,##0.00"
{:ok,
[positive: [currency: 1, literal: " ", format: "#,##0.00"],
negative: [currency: 1, minus: '-', format: :same_as_positive]]}