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