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