line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package CLDR::Number; |
2
|
|
|
|
|
|
|
|
3
|
17
|
|
|
17
|
|
693067
|
use v5.8.1; |
|
17
|
|
|
|
|
2434
|
|
4
|
17
|
|
|
17
|
|
2409
|
use utf8; |
|
17
|
|
|
|
|
32
|
|
|
17
|
|
|
|
|
1310
|
|
5
|
|
|
|
|
|
|
|
6
|
17
|
|
|
17
|
|
18852
|
use Moo; |
|
17
|
|
|
|
|
1458613
|
|
|
17
|
|
|
|
|
111
|
|
7
|
17
|
|
|
17
|
|
469858
|
use namespace::clean; |
|
17
|
|
|
|
|
1215596
|
|
|
17
|
|
|
|
|
85
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
our $VERSION = '0.15'; |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
with qw( CLDR::Number::Role::Base ); |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
sub BUILD {} |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
sub decimal_formatter { |
16
|
26
|
|
|
26
|
1
|
8939
|
my ($self, %args) = @_; |
17
|
|
|
|
|
|
|
|
18
|
26
|
|
|
|
|
9755
|
require CLDR::Number::Format::Decimal; |
19
|
26
|
|
|
|
|
169
|
CLDR::Number::Format::Decimal->new($self->_make_args(%args)); |
20
|
|
|
|
|
|
|
} |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
sub percent_formatter { |
23
|
11
|
|
|
11
|
1
|
300
|
my ($self, %args) = @_; |
24
|
|
|
|
|
|
|
|
25
|
11
|
|
|
|
|
6463
|
require CLDR::Number::Format::Percent; |
26
|
11
|
|
|
|
|
68
|
CLDR::Number::Format::Percent->new($self->_make_args(%args)); |
27
|
|
|
|
|
|
|
} |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
sub currency_formatter { |
30
|
22
|
|
|
22
|
1
|
3233
|
my ($self, %args) = @_; |
31
|
|
|
|
|
|
|
|
32
|
22
|
|
|
|
|
7754
|
require CLDR::Number::Format::Currency; |
33
|
22
|
|
|
|
|
123
|
CLDR::Number::Format::Currency->new($self->_make_args(%args)); |
34
|
|
|
|
|
|
|
} |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
sub _make_args { |
37
|
59
|
|
|
59
|
|
172
|
my ($self, %new_args) = @_; |
38
|
|
|
|
|
|
|
|
39
|
59
|
|
|
|
|
259
|
my %args = (locale => $self->locale, %new_args); |
40
|
|
|
|
|
|
|
|
41
|
59
|
|
|
|
|
8425
|
return %args; |
42
|
|
|
|
|
|
|
} |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
1; |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
__END__ |