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