line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
=encoding utf8 |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
=head1 |
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
Locale::CLDR::Locales::Ar::Any::Mr - Package for language Arabic |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
=cut |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
# This file auto generated from Data/common/main/ar_MR.xml |
10
|
|
|
|
|
|
|
# on Mon 11 Apr 5:23:38 pm GMT |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
use strict; |
13
|
1
|
|
|
1
|
|
795
|
use warnings; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
23
|
|
14
|
1
|
|
|
1
|
|
4
|
use version; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
17
|
|
15
|
1
|
|
|
1
|
|
4
|
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
4
|
|
16
|
|
|
|
|
|
|
our $VERSION = version->declare('v0.34.1'); |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
use v5.10.1; |
19
|
1
|
|
|
1
|
|
73
|
use mro 'c3'; |
|
1
|
|
|
|
|
3
|
|
20
|
1
|
|
|
1
|
|
6
|
use utf8; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
5
|
|
21
|
1
|
|
|
1
|
|
28
|
use if $^V ge v5.12.0, feature => 'unicode_strings'; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
5
|
|
22
|
1
|
|
|
1
|
|
38
|
use Types::Standard qw( Str Int HashRef ArrayRef CodeRef RegexpRef ); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
10
|
|
23
|
1
|
|
|
1
|
|
74
|
use Moo; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
5
|
|
24
|
1
|
|
|
1
|
|
820
|
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
4
|
|
25
|
|
|
|
|
|
|
extends('Locale::CLDR::Locales::Ar::Any'); |
26
|
|
|
|
|
|
|
has 'characters' => ( |
27
|
|
|
|
|
|
|
is => 'ro', |
28
|
|
|
|
|
|
|
isa => HashRef, |
29
|
|
|
|
|
|
|
init_arg => undef, |
30
|
|
|
|
|
|
|
default => $^V ge v5.18.0 |
31
|
|
|
|
|
|
|
? eval <<'EOT' |
32
|
|
|
|
|
|
|
sub { |
33
|
|
|
|
|
|
|
no warnings 'experimental::regex_sets'; |
34
|
|
|
|
|
|
|
return { |
35
|
|
|
|
|
|
|
numbers => qr{[ \- , . % ‰ + 0 1 2 3 4 5 6 7 8 9]}, |
36
|
|
|
|
|
|
|
}; |
37
|
|
|
|
|
|
|
}, |
38
|
|
|
|
|
|
|
EOT |
39
|
|
|
|
|
|
|
: sub { |
40
|
|
|
|
|
|
|
return {}; |
41
|
|
|
|
|
|
|
}, |
42
|
|
|
|
|
|
|
); |
43
|
1
|
|
|
1
|
|
73
|
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
64
|
|
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
has 'default_numbering_system' => ( |
46
|
|
|
|
|
|
|
is => 'ro', |
47
|
|
|
|
|
|
|
isa => Str, |
48
|
|
|
|
|
|
|
init_arg => undef, |
49
|
|
|
|
|
|
|
default => 'arab', |
50
|
|
|
|
|
|
|
); |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
has 'number_symbols' => ( |
53
|
|
|
|
|
|
|
is => 'ro', |
54
|
|
|
|
|
|
|
isa => HashRef, |
55
|
|
|
|
|
|
|
init_arg => undef, |
56
|
|
|
|
|
|
|
default => sub { { |
57
|
|
|
|
|
|
|
'latn' => { |
58
|
|
|
|
|
|
|
'decimal' => q(,), |
59
|
|
|
|
|
|
|
'group' => q(.), |
60
|
|
|
|
|
|
|
}, |
61
|
|
|
|
|
|
|
} } |
62
|
|
|
|
|
|
|
); |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
has 'calendar_months' => ( |
65
|
|
|
|
|
|
|
is => 'ro', |
66
|
|
|
|
|
|
|
isa => HashRef, |
67
|
|
|
|
|
|
|
init_arg => undef, |
68
|
|
|
|
|
|
|
default => sub { { |
69
|
|
|
|
|
|
|
'gregorian' => { |
70
|
|
|
|
|
|
|
'format' => { |
71
|
|
|
|
|
|
|
abbreviated => { |
72
|
|
|
|
|
|
|
nonleap => [ |
73
|
|
|
|
|
|
|
'يناير', |
74
|
|
|
|
|
|
|
'فبراير', |
75
|
|
|
|
|
|
|
'مارس', |
76
|
|
|
|
|
|
|
'إبريل', |
77
|
|
|
|
|
|
|
'مايو', |
78
|
|
|
|
|
|
|
'يونيو', |
79
|
|
|
|
|
|
|
'يوليو', |
80
|
|
|
|
|
|
|
'أغشت', |
81
|
|
|
|
|
|
|
'شتمبر', |
82
|
|
|
|
|
|
|
'أكتوبر', |
83
|
|
|
|
|
|
|
'نوفمبر', |
84
|
|
|
|
|
|
|
'دجمبر' |
85
|
|
|
|
|
|
|
], |
86
|
|
|
|
|
|
|
leap => [ |
87
|
|
|
|
|
|
|
|
88
|
|
|
|
|
|
|
], |
89
|
|
|
|
|
|
|
}, |
90
|
|
|
|
|
|
|
narrow => { |
91
|
|
|
|
|
|
|
nonleap => [ |
92
|
|
|
|
|
|
|
'ي', |
93
|
|
|
|
|
|
|
'ف', |
94
|
|
|
|
|
|
|
'م', |
95
|
|
|
|
|
|
|
'إ', |
96
|
|
|
|
|
|
|
'و', |
97
|
|
|
|
|
|
|
'ن', |
98
|
|
|
|
|
|
|
'ل', |
99
|
|
|
|
|
|
|
'غ', |
100
|
|
|
|
|
|
|
'ش', |
101
|
|
|
|
|
|
|
'ك', |
102
|
|
|
|
|
|
|
'ب', |
103
|
|
|
|
|
|
|
'د' |
104
|
|
|
|
|
|
|
], |
105
|
|
|
|
|
|
|
leap => [ |
106
|
|
|
|
|
|
|
|
107
|
|
|
|
|
|
|
], |
108
|
|
|
|
|
|
|
}, |
109
|
|
|
|
|
|
|
wide => { |
110
|
|
|
|
|
|
|
nonleap => [ |
111
|
|
|
|
|
|
|
'يناير', |
112
|
|
|
|
|
|
|
'فبراير', |
113
|
|
|
|
|
|
|
'مارس', |
114
|
|
|
|
|
|
|
'إبريل', |
115
|
|
|
|
|
|
|
'مايو', |
116
|
|
|
|
|
|
|
'يونيو', |
117
|
|
|
|
|
|
|
'يوليو', |
118
|
|
|
|
|
|
|
'أغشت', |
119
|
|
|
|
|
|
|
'شتمبر', |
120
|
|
|
|
|
|
|
'أكتوبر', |
121
|
|
|
|
|
|
|
'نوفمبر', |
122
|
|
|
|
|
|
|
'دجمبر' |
123
|
|
|
|
|
|
|
], |
124
|
|
|
|
|
|
|
leap => [ |
125
|
|
|
|
|
|
|
|
126
|
|
|
|
|
|
|
], |
127
|
|
|
|
|
|
|
}, |
128
|
|
|
|
|
|
|
}, |
129
|
|
|
|
|
|
|
'stand-alone' => { |
130
|
|
|
|
|
|
|
abbreviated => { |
131
|
|
|
|
|
|
|
nonleap => [ |
132
|
|
|
|
|
|
|
'يناير', |
133
|
|
|
|
|
|
|
'فبراير', |
134
|
|
|
|
|
|
|
'مارس', |
135
|
|
|
|
|
|
|
'إبريل', |
136
|
|
|
|
|
|
|
'مايو', |
137
|
|
|
|
|
|
|
'يونيو', |
138
|
|
|
|
|
|
|
'يوليو', |
139
|
|
|
|
|
|
|
'أغشت', |
140
|
|
|
|
|
|
|
'شتمبر', |
141
|
|
|
|
|
|
|
'أكتوبر', |
142
|
|
|
|
|
|
|
'نوفمبر', |
143
|
|
|
|
|
|
|
'دجمبر' |
144
|
|
|
|
|
|
|
], |
145
|
|
|
|
|
|
|
leap => [ |
146
|
|
|
|
|
|
|
|
147
|
|
|
|
|
|
|
], |
148
|
|
|
|
|
|
|
}, |
149
|
|
|
|
|
|
|
narrow => { |
150
|
|
|
|
|
|
|
nonleap => [ |
151
|
|
|
|
|
|
|
'ي', |
152
|
|
|
|
|
|
|
'ف', |
153
|
|
|
|
|
|
|
'م', |
154
|
|
|
|
|
|
|
'إ', |
155
|
|
|
|
|
|
|
'و', |
156
|
|
|
|
|
|
|
'ن', |
157
|
|
|
|
|
|
|
'ل', |
158
|
|
|
|
|
|
|
'غ', |
159
|
|
|
|
|
|
|
'ش', |
160
|
|
|
|
|
|
|
'ك', |
161
|
|
|
|
|
|
|
'ب', |
162
|
|
|
|
|
|
|
'د' |
163
|
|
|
|
|
|
|
], |
164
|
|
|
|
|
|
|
leap => [ |
165
|
|
|
|
|
|
|
|
166
|
|
|
|
|
|
|
], |
167
|
|
|
|
|
|
|
}, |
168
|
|
|
|
|
|
|
wide => { |
169
|
|
|
|
|
|
|
nonleap => [ |
170
|
|
|
|
|
|
|
'يناير', |
171
|
|
|
|
|
|
|
'فبراير', |
172
|
|
|
|
|
|
|
'مارس', |
173
|
|
|
|
|
|
|
'إبريل', |
174
|
|
|
|
|
|
|
'مايو', |
175
|
|
|
|
|
|
|
'يونيو', |
176
|
|
|
|
|
|
|
'يوليو', |
177
|
|
|
|
|
|
|
'أغشت', |
178
|
|
|
|
|
|
|
'شتمبر', |
179
|
|
|
|
|
|
|
'أكتوبر', |
180
|
|
|
|
|
|
|
'نوفمبر', |
181
|
|
|
|
|
|
|
'دجمبر' |
182
|
|
|
|
|
|
|
], |
183
|
|
|
|
|
|
|
leap => [ |
184
|
|
|
|
|
|
|
|
185
|
|
|
|
|
|
|
], |
186
|
|
|
|
|
|
|
}, |
187
|
|
|
|
|
|
|
}, |
188
|
|
|
|
|
|
|
}, |
189
|
|
|
|
|
|
|
} }, |
190
|
|
|
|
|
|
|
); |
191
|
|
|
|
|
|
|
|
192
|
|
|
|
|
|
|
has 'day_period_data' => ( |
193
|
|
|
|
|
|
|
is => 'ro', |
194
|
|
|
|
|
|
|
isa => CodeRef, |
195
|
|
|
|
|
|
|
init_arg => undef, |
196
|
|
|
|
|
|
|
default => sub { sub { |
197
|
|
|
|
|
|
|
# Time in hhmm format |
198
|
|
|
|
|
|
|
my ($self, $type, $time, $day_period_type) = @_; |
199
|
|
|
|
|
|
|
$day_period_type //= 'default'; |
200
|
|
|
|
|
|
|
SWITCH: |
201
|
|
|
|
|
|
|
for ($type) { |
202
|
|
|
|
|
|
|
if ($_ eq 'gregorian') { |
203
|
|
|
|
|
|
|
if($day_period_type eq 'default') { |
204
|
|
|
|
|
|
|
return 'afternoon1' if $time >= 1200 |
205
|
|
|
|
|
|
|
&& $time < 1300; |
206
|
|
|
|
|
|
|
return 'afternoon2' if $time >= 1300 |
207
|
|
|
|
|
|
|
&& $time < 1800; |
208
|
|
|
|
|
|
|
return 'evening1' if $time >= 1800 |
209
|
|
|
|
|
|
|
&& $time < 2400; |
210
|
|
|
|
|
|
|
return 'morning1' if $time >= 300 |
211
|
|
|
|
|
|
|
&& $time < 600; |
212
|
|
|
|
|
|
|
return 'morning2' if $time >= 600 |
213
|
|
|
|
|
|
|
&& $time < 1200; |
214
|
|
|
|
|
|
|
return 'night1' if $time >= 0 |
215
|
|
|
|
|
|
|
&& $time < 100; |
216
|
|
|
|
|
|
|
return 'night2' if $time >= 100 |
217
|
|
|
|
|
|
|
&& $time < 300; |
218
|
|
|
|
|
|
|
} |
219
|
|
|
|
|
|
|
if($day_period_type eq 'selection') { |
220
|
|
|
|
|
|
|
return 'afternoon1' if $time >= 1200 |
221
|
|
|
|
|
|
|
&& $time < 1300; |
222
|
|
|
|
|
|
|
return 'afternoon2' if $time >= 1300 |
223
|
|
|
|
|
|
|
&& $time < 1800; |
224
|
|
|
|
|
|
|
return 'evening1' if $time >= 1800 |
225
|
|
|
|
|
|
|
&& $time < 2400; |
226
|
|
|
|
|
|
|
return 'morning1' if $time >= 300 |
227
|
|
|
|
|
|
|
&& $time < 600; |
228
|
|
|
|
|
|
|
return 'morning2' if $time >= 600 |
229
|
|
|
|
|
|
|
&& $time < 1200; |
230
|
|
|
|
|
|
|
return 'night1' if $time >= 0 |
231
|
|
|
|
|
|
|
&& $time < 100; |
232
|
|
|
|
|
|
|
return 'night2' if $time >= 100 |
233
|
|
|
|
|
|
|
&& $time < 300; |
234
|
|
|
|
|
|
|
} |
235
|
|
|
|
|
|
|
last SWITCH; |
236
|
|
|
|
|
|
|
} |
237
|
|
|
|
|
|
|
} |
238
|
|
|
|
|
|
|
} }, |
239
|
|
|
|
|
|
|
); |
240
|
|
|
|
|
|
|
|
241
|
|
|
|
|
|
|
around day_period_data => sub { |
242
|
|
|
|
|
|
|
my ($orig, $self) = @_; |
243
|
|
|
|
|
|
|
return $self->$orig; |
244
|
|
|
|
|
|
|
}; |
245
|
|
|
|
|
|
|
|
246
|
|
|
|
|
|
|
has 'eras' => ( |
247
|
|
|
|
|
|
|
is => 'ro', |
248
|
|
|
|
|
|
|
isa => HashRef, |
249
|
|
|
|
|
|
|
init_arg => undef, |
250
|
|
|
|
|
|
|
default => sub { { |
251
|
|
|
|
|
|
|
'gregorian' => { |
252
|
|
|
|
|
|
|
}, |
253
|
|
|
|
|
|
|
} }, |
254
|
|
|
|
|
|
|
); |
255
|
|
|
|
|
|
|
|
256
|
|
|
|
|
|
|
has 'date_formats' => ( |
257
|
|
|
|
|
|
|
is => 'ro', |
258
|
|
|
|
|
|
|
isa => HashRef, |
259
|
|
|
|
|
|
|
init_arg => undef, |
260
|
|
|
|
|
|
|
default => sub { { |
261
|
|
|
|
|
|
|
'gregorian' => { |
262
|
|
|
|
|
|
|
}, |
263
|
|
|
|
|
|
|
} }, |
264
|
|
|
|
|
|
|
); |
265
|
|
|
|
|
|
|
|
266
|
|
|
|
|
|
|
has 'time_formats' => ( |
267
|
|
|
|
|
|
|
is => 'ro', |
268
|
|
|
|
|
|
|
isa => HashRef, |
269
|
|
|
|
|
|
|
init_arg => undef, |
270
|
|
|
|
|
|
|
default => sub { { |
271
|
|
|
|
|
|
|
'gregorian' => { |
272
|
|
|
|
|
|
|
}, |
273
|
|
|
|
|
|
|
} }, |
274
|
|
|
|
|
|
|
); |
275
|
|
|
|
|
|
|
|
276
|
|
|
|
|
|
|
has 'datetime_formats' => ( |
277
|
|
|
|
|
|
|
is => 'ro', |
278
|
|
|
|
|
|
|
isa => HashRef, |
279
|
|
|
|
|
|
|
init_arg => undef, |
280
|
|
|
|
|
|
|
default => sub { { |
281
|
|
|
|
|
|
|
'gregorian' => { |
282
|
|
|
|
|
|
|
}, |
283
|
|
|
|
|
|
|
} }, |
284
|
|
|
|
|
|
|
); |
285
|
|
|
|
|
|
|
|
286
|
|
|
|
|
|
|
has 'datetime_formats_available_formats' => ( |
287
|
|
|
|
|
|
|
is => 'ro', |
288
|
|
|
|
|
|
|
isa => HashRef, |
289
|
|
|
|
|
|
|
init_arg => undef, |
290
|
|
|
|
|
|
|
default => sub { { |
291
|
|
|
|
|
|
|
} }, |
292
|
|
|
|
|
|
|
); |
293
|
|
|
|
|
|
|
|
294
|
|
|
|
|
|
|
has 'datetime_formats_append_item' => ( |
295
|
|
|
|
|
|
|
is => 'ro', |
296
|
|
|
|
|
|
|
isa => HashRef, |
297
|
|
|
|
|
|
|
init_arg => undef, |
298
|
|
|
|
|
|
|
default => sub { { |
299
|
|
|
|
|
|
|
} }, |
300
|
|
|
|
|
|
|
); |
301
|
|
|
|
|
|
|
|
302
|
|
|
|
|
|
|
has 'datetime_formats_interval' => ( |
303
|
|
|
|
|
|
|
is => 'ro', |
304
|
|
|
|
|
|
|
isa => HashRef, |
305
|
|
|
|
|
|
|
init_arg => undef, |
306
|
|
|
|
|
|
|
default => sub { { |
307
|
|
|
|
|
|
|
} }, |
308
|
|
|
|
|
|
|
); |
309
|
|
|
|
|
|
|
|
310
|
|
|
|
|
|
|
no Moo; |
311
|
1
|
|
|
1
|
|
964
|
|
|
1
|
|
|
|
|
6
|
|
|
1
|
|
|
|
|
5
|
|
312
|
|
|
|
|
|
|
1; |
313
|
|
|
|
|
|
|
|
314
|
|
|
|
|
|
|
# vim: tabstop=4 |