| 1 | package CLDR::Number; | ||
| 2 | |||
| 3 | 14 | ▶ | use utf8; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 14 | ▶ | use Moo; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 14 | our $VERSION = '0.00_03'; | |
| 7 | |||
| 8 | 14 | with qw( CLDR::Number::Role::Base ); | |
| 9 | |||
| 10 | ▶ | sub BUILD {} | |
|
Subroutine
BUILD: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 11 | |||
| 12 | sub decimal_formatter { | ||
| 13 | 20 | ▶ | my ($self, %args) = @_; |
|
Subroutine
decimal_formatter: called CC=1 SCAR=0.0
Pod
documented
| |||
| 14 | |||
| 15 | 20 | require CLDR::Number::Format::Decimal; | |
| 16 | 20 | CLDR::Number::Format::Decimal->new($self->_make_args(%args)); | |
| 17 | } | ||
| 18 | |||
| 19 | sub percent_formatter { | ||
| 20 | 4 | ▶ | my ($self, %args) = @_; |
|
Subroutine
percent_formatter: called CC=1 SCAR=0.0
Pod
documented
| |||
| 21 | |||
| 22 | 4 | require CLDR::Number::Format::Percent; | |
| 23 | 4 | CLDR::Number::Format::Percent->new($self->_make_args(%args)); | |
| 24 | } | ||
| 25 | |||
| 26 | sub currency_formatter { | ||
| 27 | 12 | ▶ | my ($self, %args) = @_; |
|
Subroutine
currency_formatter: called CC=1 SCAR=0.0
Pod
documented
| |||
| 28 | |||
| 29 | 12 | require CLDR::Number::Format::Currency; | |
| 30 | 12 | CLDR::Number::Format::Currency->new($self->_make_args(%args)); | |
| 31 | } | ||
| 32 | |||
| 33 | sub _make_args { | ||
| 34 | 36 | ▶ | my ($self, %new_args) = @_; |
|
Subroutine
_make_args: called CC=1 SCAR=0.0
| |||
| 35 | |||
| 36 | 36 | my %args = (locale => $self->locale, %new_args); | |
| 37 | |||
| 38 | 36 | return %args; | |
| 39 | } | ||
| 40 | |||
| 41 | 14 | 1; | |
| 42 | |||
| 43 | __END__ | ||