Cldr.Number.Parser.resolve_pers
You're seeing just the function
resolve_pers, go back to Cldr.Number.Parser module for more information.
Specs
Resolve and tokenize percent and permille sybols from strings within a list.
Percent and permille symbols can be identified at the beginning and/or the end of a string.
Arguments
listis any list in which percent and permille symbols are expectedoptionsis a keyword list of options
Options
:backendis any module() that includesuse Cldrand therefore is aCldrbackend module(). The default isCldr.default_backend!/0:localeis any valid locale returned byCldr.known_locale_names/1or at:Cldr.LanguageTagstruct returned byCldr.Locale.new!/2The default isoptions[:backend].get_locale()
Examples
iex> Cldr.Number.Parser.scan("100%")
...> |> Cldr.Number.Parser.resolve_pers()
[100, :percent]