line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package CLDR::Number; |
2
|
|
|
|
|
|
|
|
3
|
17
|
|
|
17
|
|
701172
|
use v5.8.1; |
|
17
|
|
|
|
|
1287
|
|
4
|
17
|
|
|
17
|
|
1203
|
use utf8; |
|
17
|
|
|
|
|
2404
|
|
|
17
|
|
|
|
|
142
|
|
5
|
|
|
|
|
|
|
|
6
|
17
|
|
|
17
|
|
18877
|
use Moo; |
|
17
|
|
|
|
|
258346
|
|
|
17
|
|
|
|
|
110
|
|
7
|
17
|
|
|
17
|
|
40577
|
use namespace::clean; |
|
17
|
|
|
|
|
214113
|
|
|
17
|
|
|
|
|
84
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
our $VERSION = '0.16'; |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
with qw( CLDR::Number::Role::Base ); |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
sub BUILD {} |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
sub decimal_formatter { |
16
|
28
|
|
|
28
|
1
|
10065
|
my ($self, %args) = @_; |
17
|
|
|
|
|
|
|
|
18
|
28
|
|
|
|
|
9266
|
require CLDR::Number::Format::Decimal; |
19
|
28
|
|
|
|
|
179
|
CLDR::Number::Format::Decimal->new($self->_make_args(%args)); |
20
|
|
|
|
|
|
|
} |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
sub percent_formatter { |
23
|
11
|
|
|
11
|
1
|
336
|
my ($self, %args) = @_; |
24
|
|
|
|
|
|
|
|
25
|
11
|
|
|
|
|
6586
|
require CLDR::Number::Format::Percent; |
26
|
11
|
|
|
|
|
69
|
CLDR::Number::Format::Percent->new($self->_make_args(%args)); |
27
|
|
|
|
|
|
|
} |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
sub currency_formatter { |
30
|
22
|
|
|
22
|
1
|
5842
|
my ($self, %args) = @_; |
31
|
|
|
|
|
|
|
|
32
|
22
|
|
|
|
|
7971
|
require CLDR::Number::Format::Currency; |
33
|
22
|
|
|
|
|
137
|
CLDR::Number::Format::Currency->new($self->_make_args(%args)); |
34
|
|
|
|
|
|
|
} |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
sub _make_args { |
37
|
61
|
|
|
61
|
|
185
|
my ($self, %new_args) = @_; |
38
|
|
|
|
|
|
|
|
39
|
61
|
|
|
|
|
301
|
my %args = (locale => $self->locale, %new_args); |
40
|
|
|
|
|
|
|
|
41
|
61
|
|
|
|
|
8525
|
return %args; |
42
|
|
|
|
|
|
|
} |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
1; |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
__END__ |