class CLDR::Numbers::PatternParser

Overview

EXPERIMENTAL

TODO Write documentation

(Mostly) Based of off the pattern BNF specified in ICU4C's DecimalFormat docs See https://unicode-org.github.io/icu-docs/apidoc/released/icu4c/classicu_1_1DecimalFormat.html

Defined in:

cldr/logic/numbers/parser.cr

Constant Summary

AFFIX_CHARACTERS = {TokenTypes::PercentSign, TokenTypes::PerMilleSign, TokenTypes::CurrencySymbol, TokenTypes::StringLiteral, TokenTypes::Character, TokenTypes::MinusSign, TokenTypes::PlusSign}

Constructors

Instance Method Summary

Instance methods inherited from class Lens::Base::Parser(CLDR::Numbers::Token, CLDR::Numbers::TokenTypes, CLDR::Numbers::PatternLexer)

parse parse

Constructor methods inherited from class Lens::Base::Parser(CLDR::Numbers::Token, CLDR::Numbers::TokenTypes, CLDR::Numbers::PatternLexer)

new(source : String) new

Constructor Detail

def self.new(source : String) #

[View source]

Instance Method Detail

def parse #

Parse a number pattern


[View source]