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