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