line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
=encoding utf8 |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
=head1 |
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
Locale::CLDR::Locales::Ms::Any::Bn - Package for language Malay |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
=cut |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
# This file auto generated from Data/common/main/ms_BN.xml |
10
|
|
|
|
|
|
|
# on Mon 11 Apr 5:33:50 pm GMT |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
use strict; |
13
|
1
|
|
|
1
|
|
954
|
use warnings; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
23
|
|
14
|
1
|
|
|
1
|
|
4
|
use version; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
17
|
|
15
|
1
|
|
|
1
|
|
4
|
|
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
3
|
|
16
|
|
|
|
|
|
|
our $VERSION = version->declare('v0.34.1'); |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
use v5.10.1; |
19
|
1
|
|
|
1
|
|
73
|
use mro 'c3'; |
|
1
|
|
|
|
|
2
|
|
20
|
1
|
|
|
1
|
|
5
|
use utf8; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
4
|
|
21
|
1
|
|
|
1
|
|
21
|
use if $^V ge v5.12.0, feature => 'unicode_strings'; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
4
|
|
22
|
1
|
|
|
1
|
|
68
|
use Types::Standard qw( Str Int HashRef ArrayRef CodeRef RegexpRef ); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
10
|
|
23
|
1
|
|
|
1
|
|
72
|
use Moo; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
4
|
|
24
|
1
|
|
|
1
|
|
797
|
|
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
4
|
|
25
|
|
|
|
|
|
|
extends('Locale::CLDR::Locales::Ms::Any'); |
26
|
|
|
|
|
|
|
has 'number_symbols' => ( |
27
|
|
|
|
|
|
|
is => 'ro', |
28
|
|
|
|
|
|
|
isa => HashRef, |
29
|
|
|
|
|
|
|
init_arg => undef, |
30
|
|
|
|
|
|
|
default => sub { { |
31
|
|
|
|
|
|
|
'latn' => { |
32
|
|
|
|
|
|
|
'decimal' => q(,), |
33
|
|
|
|
|
|
|
'group' => q(.), |
34
|
|
|
|
|
|
|
}, |
35
|
|
|
|
|
|
|
} } |
36
|
|
|
|
|
|
|
); |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
has 'number_currency_formats' => ( |
39
|
|
|
|
|
|
|
is => 'ro', |
40
|
|
|
|
|
|
|
isa => HashRef, |
41
|
|
|
|
|
|
|
init_arg => undef, |
42
|
|
|
|
|
|
|
default => sub { { |
43
|
|
|
|
|
|
|
'latn' => { |
44
|
|
|
|
|
|
|
'pattern' => { |
45
|
|
|
|
|
|
|
'default' => { |
46
|
|
|
|
|
|
|
'standard' => { |
47
|
|
|
|
|
|
|
'positive' => '¤ #,##0.00', |
48
|
|
|
|
|
|
|
}, |
49
|
|
|
|
|
|
|
}, |
50
|
|
|
|
|
|
|
}, |
51
|
|
|
|
|
|
|
}, |
52
|
|
|
|
|
|
|
} }, |
53
|
|
|
|
|
|
|
); |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
has 'currencies' => ( |
56
|
|
|
|
|
|
|
is => 'ro', |
57
|
|
|
|
|
|
|
isa => HashRef, |
58
|
|
|
|
|
|
|
init_arg => undef, |
59
|
|
|
|
|
|
|
default => sub { { |
60
|
|
|
|
|
|
|
'BND' => { |
61
|
|
|
|
|
|
|
symbol => '$', |
62
|
|
|
|
|
|
|
}, |
63
|
|
|
|
|
|
|
} }, |
64
|
|
|
|
|
|
|
); |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
has 'day_period_data' => ( |
68
|
|
|
|
|
|
|
is => 'ro', |
69
|
|
|
|
|
|
|
isa => CodeRef, |
70
|
|
|
|
|
|
|
init_arg => undef, |
71
|
|
|
|
|
|
|
default => sub { sub { |
72
|
|
|
|
|
|
|
# Time in hhmm format |
73
|
|
|
|
|
|
|
my ($self, $type, $time, $day_period_type) = @_; |
74
|
|
|
|
|
|
|
$day_period_type //= 'default'; |
75
|
|
|
|
|
|
|
SWITCH: |
76
|
|
|
|
|
|
|
for ($type) { |
77
|
|
|
|
|
|
|
if ($_ eq 'generic') { |
78
|
|
|
|
|
|
|
if($day_period_type eq 'default') { |
79
|
|
|
|
|
|
|
return 'afternoon1' if $time >= 1200 |
80
|
|
|
|
|
|
|
&& $time < 1400; |
81
|
|
|
|
|
|
|
return 'evening1' if $time >= 1400 |
82
|
|
|
|
|
|
|
&& $time < 1900; |
83
|
|
|
|
|
|
|
return 'morning1' if $time >= 0 |
84
|
|
|
|
|
|
|
&& $time < 100; |
85
|
|
|
|
|
|
|
return 'morning2' if $time >= 100 |
86
|
|
|
|
|
|
|
&& $time < 1200; |
87
|
|
|
|
|
|
|
return 'night1' if $time >= 1900 |
88
|
|
|
|
|
|
|
&& $time < 2400; |
89
|
|
|
|
|
|
|
} |
90
|
|
|
|
|
|
|
if($day_period_type eq 'selection') { |
91
|
|
|
|
|
|
|
return 'afternoon1' if $time >= 1200 |
92
|
|
|
|
|
|
|
&& $time < 1400; |
93
|
|
|
|
|
|
|
return 'evening1' if $time >= 1400 |
94
|
|
|
|
|
|
|
&& $time < 1900; |
95
|
|
|
|
|
|
|
return 'morning1' if $time >= 0 |
96
|
|
|
|
|
|
|
&& $time < 100; |
97
|
|
|
|
|
|
|
return 'morning2' if $time >= 100 |
98
|
|
|
|
|
|
|
&& $time < 1200; |
99
|
|
|
|
|
|
|
return 'night1' if $time >= 1900 |
100
|
|
|
|
|
|
|
&& $time < 2400; |
101
|
|
|
|
|
|
|
} |
102
|
|
|
|
|
|
|
last SWITCH; |
103
|
|
|
|
|
|
|
} |
104
|
|
|
|
|
|
|
if ($_ eq 'gregorian') { |
105
|
|
|
|
|
|
|
if($day_period_type eq 'default') { |
106
|
|
|
|
|
|
|
return 'afternoon1' if $time >= 1200 |
107
|
|
|
|
|
|
|
&& $time < 1400; |
108
|
|
|
|
|
|
|
return 'evening1' if $time >= 1400 |
109
|
|
|
|
|
|
|
&& $time < 1900; |
110
|
|
|
|
|
|
|
return 'morning1' if $time >= 0 |
111
|
|
|
|
|
|
|
&& $time < 100; |
112
|
|
|
|
|
|
|
return 'morning2' if $time >= 100 |
113
|
|
|
|
|
|
|
&& $time < 1200; |
114
|
|
|
|
|
|
|
return 'night1' if $time >= 1900 |
115
|
|
|
|
|
|
|
&& $time < 2400; |
116
|
|
|
|
|
|
|
} |
117
|
|
|
|
|
|
|
if($day_period_type eq 'selection') { |
118
|
|
|
|
|
|
|
return 'afternoon1' if $time >= 1200 |
119
|
|
|
|
|
|
|
&& $time < 1400; |
120
|
|
|
|
|
|
|
return 'evening1' if $time >= 1400 |
121
|
|
|
|
|
|
|
&& $time < 1900; |
122
|
|
|
|
|
|
|
return 'morning1' if $time >= 0 |
123
|
|
|
|
|
|
|
&& $time < 100; |
124
|
|
|
|
|
|
|
return 'morning2' if $time >= 100 |
125
|
|
|
|
|
|
|
&& $time < 1200; |
126
|
|
|
|
|
|
|
return 'night1' if $time >= 1900 |
127
|
|
|
|
|
|
|
&& $time < 2400; |
128
|
|
|
|
|
|
|
} |
129
|
|
|
|
|
|
|
last SWITCH; |
130
|
|
|
|
|
|
|
} |
131
|
|
|
|
|
|
|
} |
132
|
|
|
|
|
|
|
} }, |
133
|
|
|
|
|
|
|
); |
134
|
|
|
|
|
|
|
|
135
|
|
|
|
|
|
|
around day_period_data => sub { |
136
|
|
|
|
|
|
|
my ($orig, $self) = @_; |
137
|
|
|
|
|
|
|
return $self->$orig; |
138
|
|
|
|
|
|
|
}; |
139
|
|
|
|
|
|
|
|
140
|
|
|
|
|
|
|
has 'eras' => ( |
141
|
|
|
|
|
|
|
is => 'ro', |
142
|
|
|
|
|
|
|
isa => HashRef, |
143
|
|
|
|
|
|
|
init_arg => undef, |
144
|
|
|
|
|
|
|
default => sub { { |
145
|
|
|
|
|
|
|
'generic' => { |
146
|
|
|
|
|
|
|
}, |
147
|
|
|
|
|
|
|
'gregorian' => { |
148
|
|
|
|
|
|
|
}, |
149
|
|
|
|
|
|
|
} }, |
150
|
|
|
|
|
|
|
); |
151
|
|
|
|
|
|
|
|
152
|
|
|
|
|
|
|
has 'date_formats' => ( |
153
|
|
|
|
|
|
|
is => 'ro', |
154
|
|
|
|
|
|
|
isa => HashRef, |
155
|
|
|
|
|
|
|
init_arg => undef, |
156
|
|
|
|
|
|
|
default => sub { { |
157
|
|
|
|
|
|
|
'generic' => { |
158
|
|
|
|
|
|
|
'full' => q{dd MMMM y G}, |
159
|
|
|
|
|
|
|
}, |
160
|
|
|
|
|
|
|
'gregorian' => { |
161
|
|
|
|
|
|
|
'full' => q{dd MMMM y}, |
162
|
|
|
|
|
|
|
}, |
163
|
|
|
|
|
|
|
} }, |
164
|
|
|
|
|
|
|
); |
165
|
|
|
|
|
|
|
|
166
|
|
|
|
|
|
|
has 'time_formats' => ( |
167
|
|
|
|
|
|
|
is => 'ro', |
168
|
|
|
|
|
|
|
isa => HashRef, |
169
|
|
|
|
|
|
|
init_arg => undef, |
170
|
|
|
|
|
|
|
default => sub { { |
171
|
|
|
|
|
|
|
'generic' => { |
172
|
|
|
|
|
|
|
}, |
173
|
|
|
|
|
|
|
'gregorian' => { |
174
|
|
|
|
|
|
|
}, |
175
|
|
|
|
|
|
|
} }, |
176
|
|
|
|
|
|
|
); |
177
|
|
|
|
|
|
|
|
178
|
|
|
|
|
|
|
has 'datetime_formats' => ( |
179
|
|
|
|
|
|
|
is => 'ro', |
180
|
|
|
|
|
|
|
isa => HashRef, |
181
|
|
|
|
|
|
|
init_arg => undef, |
182
|
|
|
|
|
|
|
default => sub { { |
183
|
|
|
|
|
|
|
'generic' => { |
184
|
|
|
|
|
|
|
}, |
185
|
|
|
|
|
|
|
'gregorian' => { |
186
|
|
|
|
|
|
|
}, |
187
|
|
|
|
|
|
|
} }, |
188
|
|
|
|
|
|
|
); |
189
|
|
|
|
|
|
|
|
190
|
|
|
|
|
|
|
has 'datetime_formats_available_formats' => ( |
191
|
|
|
|
|
|
|
is => 'ro', |
192
|
|
|
|
|
|
|
isa => HashRef, |
193
|
|
|
|
|
|
|
init_arg => undef, |
194
|
|
|
|
|
|
|
default => sub { { |
195
|
|
|
|
|
|
|
} }, |
196
|
|
|
|
|
|
|
); |
197
|
|
|
|
|
|
|
|
198
|
|
|
|
|
|
|
has 'datetime_formats_append_item' => ( |
199
|
|
|
|
|
|
|
is => 'ro', |
200
|
|
|
|
|
|
|
isa => HashRef, |
201
|
|
|
|
|
|
|
init_arg => undef, |
202
|
|
|
|
|
|
|
default => sub { { |
203
|
|
|
|
|
|
|
} }, |
204
|
|
|
|
|
|
|
); |
205
|
|
|
|
|
|
|
|
206
|
|
|
|
|
|
|
has 'datetime_formats_interval' => ( |
207
|
|
|
|
|
|
|
is => 'ro', |
208
|
|
|
|
|
|
|
isa => HashRef, |
209
|
|
|
|
|
|
|
init_arg => undef, |
210
|
|
|
|
|
|
|
default => sub { { |
211
|
|
|
|
|
|
|
} }, |
212
|
|
|
|
|
|
|
); |
213
|
|
|
|
|
|
|
|
214
|
|
|
|
|
|
|
no Moo; |
215
|
1
|
|
|
1
|
|
895
|
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
3
|
|
216
|
|
|
|
|
|
|
1; |
217
|
|
|
|
|
|
|
|
218
|
|
|
|
|
|
|
# vim: tabstop=4 |