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