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