line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package CLDR::Number; |
2
|
|
|
|
|
|
|
|
3
|
17
|
|
|
17
|
|
463719
|
use v5.8.1; |
|
17
|
|
|
|
|
45
|
|
4
|
17
|
|
|
17
|
|
674
|
use utf8; |
|
17
|
|
|
|
|
829
|
|
|
17
|
|
|
|
|
734
|
|
5
|
|
|
|
|
|
|
|
6
|
17
|
|
|
17
|
|
8629
|
use Moo; |
|
17
|
|
|
|
|
158624
|
|
|
17
|
|
|
|
|
74
|
|
7
|
17
|
|
|
17
|
|
24429
|
use namespace::clean; |
|
17
|
|
|
|
|
136935
|
|
|
17
|
|
|
|
|
60
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
our $VERSION = '0.19'; |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
with qw( CLDR::Number::Role::Base ); |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
sub BUILD {} |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
sub decimal_formatter { |
16
|
28
|
|
|
28
|
1
|
8068
|
my ($self, %args) = @_; |
17
|
|
|
|
|
|
|
|
18
|
28
|
|
|
|
|
5837
|
require CLDR::Number::Format::Decimal; |
19
|
28
|
|
|
|
|
126
|
CLDR::Number::Format::Decimal->new($self->_make_args(%args)); |
20
|
|
|
|
|
|
|
} |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
sub percent_formatter { |
23
|
11
|
|
|
11
|
1
|
208
|
my ($self, %args) = @_; |
24
|
|
|
|
|
|
|
|
25
|
11
|
|
|
|
|
3842
|
require CLDR::Number::Format::Percent; |
26
|
11
|
|
|
|
|
44
|
CLDR::Number::Format::Percent->new($self->_make_args(%args)); |
27
|
|
|
|
|
|
|
} |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
sub currency_formatter { |
30
|
22
|
|
|
22
|
1
|
5005
|
my ($self, %args) = @_; |
31
|
|
|
|
|
|
|
|
32
|
22
|
|
|
|
|
4832
|
require CLDR::Number::Format::Currency; |
33
|
22
|
|
|
|
|
92
|
CLDR::Number::Format::Currency->new($self->_make_args(%args)); |
34
|
|
|
|
|
|
|
} |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
sub _make_args { |
37
|
61
|
|
|
61
|
|
122
|
my ($self, %new_args) = @_; |
38
|
|
|
|
|
|
|
|
39
|
61
|
|
|
|
|
181
|
my %args = (locale => $self->locale, %new_args); |
40
|
|
|
|
|
|
|
|
41
|
61
|
|
|
|
|
6918
|
return %args; |
42
|
|
|
|
|
|
|
} |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
1; |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
__END__ |