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