line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
=encoding utf8 |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
=head1 NAME |
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
Locale::CLDR::Locales::Ar::Any::Ae - Package for language Arabic |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
=cut |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
package Locale::CLDR::Locales::Ar::Any::Ae; |
10
|
|
|
|
|
|
|
# This file auto generated from Data\common\main\ar_AE.xml |
11
|
|
|
|
|
|
|
# on Fri 13 Oct 9:05:27 am GMT |
12
|
|
|
|
|
|
|
|
13
|
1
|
|
|
1
|
|
1110
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
25
|
|
14
|
1
|
|
|
1
|
|
4
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
20
|
|
15
|
1
|
|
|
1
|
|
4
|
use version; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
3
|
|
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
our $VERSION = version->declare('v0.34.2'); |
18
|
|
|
|
|
|
|
|
19
|
1
|
|
|
1
|
|
82
|
use v5.10.1; |
|
1
|
|
|
|
|
3
|
|
20
|
1
|
|
|
1
|
|
5
|
use mro 'c3'; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
4
|
|
21
|
1
|
|
|
1
|
|
22
|
use utf8; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
3
|
|
22
|
1
|
|
|
1
|
|
41
|
use if $^V ge v5.12.0, feature => 'unicode_strings'; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
10
|
|
23
|
1
|
|
|
1
|
|
82
|
use Types::Standard qw( Str Int HashRef ArrayRef CodeRef RegexpRef ); |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
5
|
|
24
|
1
|
|
|
1
|
|
898
|
use Moo; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
4
|
|
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
extends('Locale::CLDR::Locales::Ar::Any'); |
27
|
|
|
|
|
|
|
has 'display_name_region' => ( |
28
|
|
|
|
|
|
|
is => 'ro', |
29
|
|
|
|
|
|
|
isa => HashRef[Str], |
30
|
|
|
|
|
|
|
init_arg => undef, |
31
|
|
|
|
|
|
|
default => sub { |
32
|
|
|
|
|
|
|
{ |
33
|
|
|
|
|
|
|
'CI@alt=variant' => 'ساحل العاج', |
34
|
|
|
|
|
|
|
'TL@alt=variant' => 'التيمور الشرقية', |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
} |
37
|
|
|
|
|
|
|
}, |
38
|
|
|
|
|
|
|
); |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
has 'default_numbering_system' => ( |
41
|
|
|
|
|
|
|
is => 'ro', |
42
|
|
|
|
|
|
|
isa => Str, |
43
|
|
|
|
|
|
|
init_arg => undef, |
44
|
|
|
|
|
|
|
default => 'arab', |
45
|
|
|
|
|
|
|
); |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
has 'currencies' => ( |
48
|
|
|
|
|
|
|
is => 'ro', |
49
|
|
|
|
|
|
|
isa => HashRef, |
50
|
|
|
|
|
|
|
init_arg => undef, |
51
|
|
|
|
|
|
|
default => sub { { |
52
|
|
|
|
|
|
|
'BND' => { |
53
|
|
|
|
|
|
|
symbol => '$', |
54
|
|
|
|
|
|
|
}, |
55
|
|
|
|
|
|
|
} }, |
56
|
|
|
|
|
|
|
); |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
has 'day_period_data' => ( |
60
|
|
|
|
|
|
|
is => 'ro', |
61
|
|
|
|
|
|
|
isa => CodeRef, |
62
|
|
|
|
|
|
|
init_arg => undef, |
63
|
|
|
|
|
|
|
default => sub { sub { |
64
|
|
|
|
|
|
|
# Time in hhmm format |
65
|
|
|
|
|
|
|
my ($self, $type, $time, $day_period_type) = @_; |
66
|
|
|
|
|
|
|
$day_period_type //= 'default'; |
67
|
|
|
|
|
|
|
SWITCH: |
68
|
|
|
|
|
|
|
for ($type) { |
69
|
|
|
|
|
|
|
if ($_ eq 'gregorian') { |
70
|
|
|
|
|
|
|
if($day_period_type eq 'default') { |
71
|
|
|
|
|
|
|
return 'afternoon1' if $time >= 1200 |
72
|
|
|
|
|
|
|
&& $time < 1300; |
73
|
|
|
|
|
|
|
return 'afternoon2' if $time >= 1300 |
74
|
|
|
|
|
|
|
&& $time < 1800; |
75
|
|
|
|
|
|
|
return 'evening1' if $time >= 1800 |
76
|
|
|
|
|
|
|
&& $time < 2400; |
77
|
|
|
|
|
|
|
return 'morning1' if $time >= 300 |
78
|
|
|
|
|
|
|
&& $time < 600; |
79
|
|
|
|
|
|
|
return 'morning2' if $time >= 600 |
80
|
|
|
|
|
|
|
&& $time < 1200; |
81
|
|
|
|
|
|
|
return 'night1' if $time >= 0 |
82
|
|
|
|
|
|
|
&& $time < 100; |
83
|
|
|
|
|
|
|
return 'night2' if $time >= 100 |
84
|
|
|
|
|
|
|
&& $time < 300; |
85
|
|
|
|
|
|
|
} |
86
|
|
|
|
|
|
|
if($day_period_type eq 'selection') { |
87
|
|
|
|
|
|
|
return 'afternoon1' if $time >= 1200 |
88
|
|
|
|
|
|
|
&& $time < 1300; |
89
|
|
|
|
|
|
|
return 'afternoon2' if $time >= 1300 |
90
|
|
|
|
|
|
|
&& $time < 1800; |
91
|
|
|
|
|
|
|
return 'evening1' if $time >= 1800 |
92
|
|
|
|
|
|
|
&& $time < 2400; |
93
|
|
|
|
|
|
|
return 'morning1' if $time >= 300 |
94
|
|
|
|
|
|
|
&& $time < 600; |
95
|
|
|
|
|
|
|
return 'morning2' if $time >= 600 |
96
|
|
|
|
|
|
|
&& $time < 1200; |
97
|
|
|
|
|
|
|
return 'night1' if $time >= 0 |
98
|
|
|
|
|
|
|
&& $time < 100; |
99
|
|
|
|
|
|
|
return 'night2' if $time >= 100 |
100
|
|
|
|
|
|
|
&& $time < 300; |
101
|
|
|
|
|
|
|
} |
102
|
|
|
|
|
|
|
last SWITCH; |
103
|
|
|
|
|
|
|
} |
104
|
|
|
|
|
|
|
} |
105
|
|
|
|
|
|
|
} }, |
106
|
|
|
|
|
|
|
); |
107
|
|
|
|
|
|
|
|
108
|
|
|
|
|
|
|
around day_period_data => sub { |
109
|
|
|
|
|
|
|
my ($orig, $self) = @_; |
110
|
|
|
|
|
|
|
return $self->$orig; |
111
|
|
|
|
|
|
|
}; |
112
|
|
|
|
|
|
|
|
113
|
|
|
|
|
|
|
has 'eras' => ( |
114
|
|
|
|
|
|
|
is => 'ro', |
115
|
|
|
|
|
|
|
isa => HashRef, |
116
|
|
|
|
|
|
|
init_arg => undef, |
117
|
|
|
|
|
|
|
default => sub { { |
118
|
|
|
|
|
|
|
'gregorian' => { |
119
|
|
|
|
|
|
|
}, |
120
|
|
|
|
|
|
|
} }, |
121
|
|
|
|
|
|
|
); |
122
|
|
|
|
|
|
|
|
123
|
|
|
|
|
|
|
has 'date_formats' => ( |
124
|
|
|
|
|
|
|
is => 'ro', |
125
|
|
|
|
|
|
|
isa => HashRef, |
126
|
|
|
|
|
|
|
init_arg => undef, |
127
|
|
|
|
|
|
|
default => sub { { |
128
|
|
|
|
|
|
|
'gregorian' => { |
129
|
|
|
|
|
|
|
}, |
130
|
|
|
|
|
|
|
} }, |
131
|
|
|
|
|
|
|
); |
132
|
|
|
|
|
|
|
|
133
|
|
|
|
|
|
|
has 'time_formats' => ( |
134
|
|
|
|
|
|
|
is => 'ro', |
135
|
|
|
|
|
|
|
isa => HashRef, |
136
|
|
|
|
|
|
|
init_arg => undef, |
137
|
|
|
|
|
|
|
default => sub { { |
138
|
|
|
|
|
|
|
'gregorian' => { |
139
|
|
|
|
|
|
|
}, |
140
|
|
|
|
|
|
|
} }, |
141
|
|
|
|
|
|
|
); |
142
|
|
|
|
|
|
|
|
143
|
|
|
|
|
|
|
has 'datetime_formats' => ( |
144
|
|
|
|
|
|
|
is => 'ro', |
145
|
|
|
|
|
|
|
isa => HashRef, |
146
|
|
|
|
|
|
|
init_arg => undef, |
147
|
|
|
|
|
|
|
default => sub { { |
148
|
|
|
|
|
|
|
'gregorian' => { |
149
|
|
|
|
|
|
|
}, |
150
|
|
|
|
|
|
|
} }, |
151
|
|
|
|
|
|
|
); |
152
|
|
|
|
|
|
|
|
153
|
|
|
|
|
|
|
has 'datetime_formats_available_formats' => ( |
154
|
|
|
|
|
|
|
is => 'ro', |
155
|
|
|
|
|
|
|
isa => HashRef, |
156
|
|
|
|
|
|
|
init_arg => undef, |
157
|
|
|
|
|
|
|
default => sub { { |
158
|
|
|
|
|
|
|
} }, |
159
|
|
|
|
|
|
|
); |
160
|
|
|
|
|
|
|
|
161
|
|
|
|
|
|
|
has 'datetime_formats_append_item' => ( |
162
|
|
|
|
|
|
|
is => 'ro', |
163
|
|
|
|
|
|
|
isa => HashRef, |
164
|
|
|
|
|
|
|
init_arg => undef, |
165
|
|
|
|
|
|
|
default => sub { { |
166
|
|
|
|
|
|
|
} }, |
167
|
|
|
|
|
|
|
); |
168
|
|
|
|
|
|
|
|
169
|
|
|
|
|
|
|
has 'datetime_formats_interval' => ( |
170
|
|
|
|
|
|
|
is => 'ro', |
171
|
|
|
|
|
|
|
isa => HashRef, |
172
|
|
|
|
|
|
|
init_arg => undef, |
173
|
|
|
|
|
|
|
default => sub { { |
174
|
|
|
|
|
|
|
} }, |
175
|
|
|
|
|
|
|
); |
176
|
|
|
|
|
|
|
|
177
|
1
|
|
|
1
|
|
928
|
no Moo; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
3
|
|
178
|
|
|
|
|
|
|
|
179
|
|
|
|
|
|
|
1; |
180
|
|
|
|
|
|
|
|
181
|
|
|
|
|
|
|
# vim: tabstop=4 |