line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
=encoding utf8 |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
=head1 |
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
Locale::CLDR::Locales::Sr::Latn::Xk - Package for language Serbian |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
=cut |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
# This file auto generated from Data/common/main/sr_Latn_XK.xml |
10
|
|
|
|
|
|
|
# on Mon 11 Apr 5:38:41 pm GMT |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
use strict; |
13
|
1
|
|
|
1
|
|
1244
|
use warnings; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
27
|
|
14
|
1
|
|
|
1
|
|
5
|
use version; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
29
|
|
15
|
1
|
|
|
1
|
|
4
|
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
181
|
|
16
|
|
|
|
|
|
|
our $VERSION = version->declare('v0.34.1'); |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
use v5.10.1; |
19
|
1
|
|
|
1
|
|
115
|
use mro 'c3'; |
|
1
|
|
|
|
|
3
|
|
20
|
1
|
|
|
1
|
|
5
|
use utf8; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
7
|
|
21
|
1
|
|
|
1
|
|
22
|
use if $^V ge v5.12.0, feature => 'unicode_strings'; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
7
|
|
22
|
1
|
|
|
1
|
|
27
|
use Types::Standard qw( Str Int HashRef ArrayRef CodeRef RegexpRef ); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
17
|
|
23
|
1
|
|
|
1
|
|
133
|
use Moo; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
18
|
|
24
|
1
|
|
|
1
|
|
985
|
|
|
1
|
|
|
|
|
111
|
|
|
1
|
|
|
|
|
11
|
|
25
|
|
|
|
|
|
|
extends('Locale::CLDR::Locales::Sr::Latn'); |
26
|
|
|
|
|
|
|
has 'display_name_language' => ( |
27
|
|
|
|
|
|
|
is => 'ro', |
28
|
|
|
|
|
|
|
isa => CodeRef, |
29
|
|
|
|
|
|
|
init_arg => undef, |
30
|
|
|
|
|
|
|
default => sub { |
31
|
|
|
|
|
|
|
sub { |
32
|
|
|
|
|
|
|
my %languages = ( |
33
|
|
|
|
|
|
|
'bm' => 'bamanankan', |
34
|
|
|
|
|
|
|
'bn' => 'bangla', |
35
|
|
|
|
|
|
|
'ff' => 'fulah', |
36
|
|
|
|
|
|
|
'gsw' => 'švajcarski nemački', |
37
|
|
|
|
|
|
|
'ht' => 'haićanski kreolski', |
38
|
|
|
|
|
|
|
'lo' => 'laoški', |
39
|
|
|
|
|
|
|
'moh' => 'mohok', |
40
|
|
|
|
|
|
|
'nqo' => 'n’ko', |
41
|
|
|
|
|
|
|
'shi' => 'južni šilha', |
42
|
|
|
|
|
|
|
'si' => 'sinhalski', |
43
|
|
|
|
|
|
|
'tzm' => 'centralnoatlaski tamašek', |
44
|
|
|
|
|
|
|
'xh' => 'isikosa', |
45
|
|
|
|
|
|
|
'zgh' => 'standardni marokanski tamašek', |
46
|
|
|
|
|
|
|
'zu' => 'isizulu', |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
); |
49
|
|
|
|
|
|
|
if (@_) { |
50
|
|
|
|
|
|
|
return $languages{$_[0]}; |
51
|
|
|
|
|
|
|
} |
52
|
|
|
|
|
|
|
return \%languages; |
53
|
|
|
|
|
|
|
} |
54
|
|
|
|
|
|
|
}, |
55
|
|
|
|
|
|
|
); |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
has 'display_name_region' => ( |
58
|
|
|
|
|
|
|
is => 'ro', |
59
|
|
|
|
|
|
|
isa => HashRef[Str], |
60
|
|
|
|
|
|
|
init_arg => undef, |
61
|
|
|
|
|
|
|
default => sub { |
62
|
|
|
|
|
|
|
{ |
63
|
|
|
|
|
|
|
'CG' => 'Kongo', |
64
|
|
|
|
|
|
|
'CV' => 'Kabo Verde', |
65
|
|
|
|
|
|
|
'CZ' => 'Češka Republika', |
66
|
|
|
|
|
|
|
'HK' => 'SAR Hongkong', |
67
|
|
|
|
|
|
|
'KN' => 'Sveti Kits i Nevis', |
68
|
|
|
|
|
|
|
'MK@alt=variant' => 'BJR Makedonija', |
69
|
|
|
|
|
|
|
'MO' => 'SAR Makao', |
70
|
|
|
|
|
|
|
'PM' => 'Sveti Pjer i Mikelon', |
71
|
|
|
|
|
|
|
'RE' => 'Reunion', |
72
|
|
|
|
|
|
|
'UM' => 'Manja udaljena ostrva SAD', |
73
|
|
|
|
|
|
|
'VC' => 'Sveti Vinsent i Grenadini', |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
} |
76
|
|
|
|
|
|
|
}, |
77
|
|
|
|
|
|
|
); |
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
has 'calendar_months' => ( |
80
|
|
|
|
|
|
|
is => 'ro', |
81
|
|
|
|
|
|
|
isa => HashRef, |
82
|
|
|
|
|
|
|
init_arg => undef, |
83
|
|
|
|
|
|
|
default => sub { { |
84
|
|
|
|
|
|
|
'gregorian' => { |
85
|
|
|
|
|
|
|
'format' => { |
86
|
|
|
|
|
|
|
abbreviated => { |
87
|
|
|
|
|
|
|
nonleap => [ |
88
|
|
|
|
|
|
|
'jan.', |
89
|
|
|
|
|
|
|
'feb.', |
90
|
|
|
|
|
|
|
'mart', |
91
|
|
|
|
|
|
|
'apr.', |
92
|
|
|
|
|
|
|
'maj', |
93
|
|
|
|
|
|
|
'jun', |
94
|
|
|
|
|
|
|
'jul', |
95
|
|
|
|
|
|
|
'avg.', |
96
|
|
|
|
|
|
|
'sept.', |
97
|
|
|
|
|
|
|
'okt.', |
98
|
|
|
|
|
|
|
'nov.', |
99
|
|
|
|
|
|
|
'dec.' |
100
|
|
|
|
|
|
|
], |
101
|
|
|
|
|
|
|
leap => [ |
102
|
|
|
|
|
|
|
|
103
|
|
|
|
|
|
|
], |
104
|
|
|
|
|
|
|
}, |
105
|
|
|
|
|
|
|
}, |
106
|
|
|
|
|
|
|
'stand-alone' => { |
107
|
|
|
|
|
|
|
abbreviated => { |
108
|
|
|
|
|
|
|
nonleap => [ |
109
|
|
|
|
|
|
|
'jan.', |
110
|
|
|
|
|
|
|
'feb.', |
111
|
|
|
|
|
|
|
'mart', |
112
|
|
|
|
|
|
|
'apr.', |
113
|
|
|
|
|
|
|
'maj', |
114
|
|
|
|
|
|
|
'jun', |
115
|
|
|
|
|
|
|
'jul', |
116
|
|
|
|
|
|
|
'avg.', |
117
|
|
|
|
|
|
|
'sept.', |
118
|
|
|
|
|
|
|
'okt.', |
119
|
|
|
|
|
|
|
'nov.', |
120
|
|
|
|
|
|
|
'dec.' |
121
|
|
|
|
|
|
|
], |
122
|
|
|
|
|
|
|
leap => [ |
123
|
|
|
|
|
|
|
|
124
|
|
|
|
|
|
|
], |
125
|
|
|
|
|
|
|
}, |
126
|
|
|
|
|
|
|
}, |
127
|
|
|
|
|
|
|
}, |
128
|
|
|
|
|
|
|
} }, |
129
|
|
|
|
|
|
|
); |
130
|
|
|
|
|
|
|
|
131
|
|
|
|
|
|
|
has 'calendar_days' => ( |
132
|
|
|
|
|
|
|
is => 'ro', |
133
|
|
|
|
|
|
|
isa => HashRef, |
134
|
|
|
|
|
|
|
init_arg => undef, |
135
|
|
|
|
|
|
|
default => sub { { |
136
|
|
|
|
|
|
|
'gregorian' => { |
137
|
|
|
|
|
|
|
'format' => { |
138
|
|
|
|
|
|
|
abbreviated => { |
139
|
|
|
|
|
|
|
mon => 'pon.', |
140
|
|
|
|
|
|
|
tue => 'ut.', |
141
|
|
|
|
|
|
|
wed => 'sr.', |
142
|
|
|
|
|
|
|
thu => 'čet.', |
143
|
|
|
|
|
|
|
fri => 'pet.', |
144
|
|
|
|
|
|
|
sat => 'sub.', |
145
|
|
|
|
|
|
|
sun => 'ned.' |
146
|
|
|
|
|
|
|
}, |
147
|
|
|
|
|
|
|
}, |
148
|
|
|
|
|
|
|
'stand-alone' => { |
149
|
|
|
|
|
|
|
abbreviated => { |
150
|
|
|
|
|
|
|
mon => 'pon.', |
151
|
|
|
|
|
|
|
tue => 'ut.', |
152
|
|
|
|
|
|
|
wed => 'sr.', |
153
|
|
|
|
|
|
|
thu => 'čet.', |
154
|
|
|
|
|
|
|
fri => 'pet.', |
155
|
|
|
|
|
|
|
sat => 'sub.', |
156
|
|
|
|
|
|
|
sun => 'ned.' |
157
|
|
|
|
|
|
|
}, |
158
|
|
|
|
|
|
|
}, |
159
|
|
|
|
|
|
|
}, |
160
|
|
|
|
|
|
|
} }, |
161
|
|
|
|
|
|
|
); |
162
|
|
|
|
|
|
|
|
163
|
|
|
|
|
|
|
has 'day_period_data' => ( |
164
|
|
|
|
|
|
|
is => 'ro', |
165
|
|
|
|
|
|
|
isa => CodeRef, |
166
|
|
|
|
|
|
|
init_arg => undef, |
167
|
|
|
|
|
|
|
default => sub { sub { |
168
|
|
|
|
|
|
|
# Time in hhmm format |
169
|
|
|
|
|
|
|
my ($self, $type, $time, $day_period_type) = @_; |
170
|
|
|
|
|
|
|
$day_period_type //= 'default'; |
171
|
|
|
|
|
|
|
SWITCH: |
172
|
|
|
|
|
|
|
for ($type) { |
173
|
|
|
|
|
|
|
if ($_ eq 'generic') { |
174
|
|
|
|
|
|
|
if($day_period_type eq 'default') { |
175
|
|
|
|
|
|
|
return 'midnight' if $time == 0; |
176
|
|
|
|
|
|
|
return 'noon' if $time == 1200; |
177
|
|
|
|
|
|
|
return 'afternoon1' if $time >= 1200 |
178
|
|
|
|
|
|
|
&& $time < 1800; |
179
|
|
|
|
|
|
|
return 'evening1' if $time >= 1800 |
180
|
|
|
|
|
|
|
&& $time < 2100; |
181
|
|
|
|
|
|
|
return 'morning1' if $time >= 600 |
182
|
|
|
|
|
|
|
&& $time < 1200; |
183
|
|
|
|
|
|
|
return 'night1' if $time >= 2100; |
184
|
|
|
|
|
|
|
return 'night1' if $time < 600; |
185
|
|
|
|
|
|
|
} |
186
|
|
|
|
|
|
|
if($day_period_type eq 'selection') { |
187
|
|
|
|
|
|
|
return 'afternoon1' if $time >= 1200 |
188
|
|
|
|
|
|
|
&& $time < 1800; |
189
|
|
|
|
|
|
|
return 'evening1' if $time >= 1800 |
190
|
|
|
|
|
|
|
&& $time < 2100; |
191
|
|
|
|
|
|
|
return 'morning1' if $time >= 600 |
192
|
|
|
|
|
|
|
&& $time < 1200; |
193
|
|
|
|
|
|
|
return 'night1' if $time >= 2100; |
194
|
|
|
|
|
|
|
return 'night1' if $time < 600; |
195
|
|
|
|
|
|
|
} |
196
|
|
|
|
|
|
|
last SWITCH; |
197
|
|
|
|
|
|
|
} |
198
|
|
|
|
|
|
|
if ($_ eq 'gregorian') { |
199
|
|
|
|
|
|
|
if($day_period_type eq 'default') { |
200
|
|
|
|
|
|
|
return 'midnight' if $time == 0; |
201
|
|
|
|
|
|
|
return 'noon' if $time == 1200; |
202
|
|
|
|
|
|
|
return 'afternoon1' if $time >= 1200 |
203
|
|
|
|
|
|
|
&& $time < 1800; |
204
|
|
|
|
|
|
|
return 'evening1' if $time >= 1800 |
205
|
|
|
|
|
|
|
&& $time < 2100; |
206
|
|
|
|
|
|
|
return 'morning1' if $time >= 600 |
207
|
|
|
|
|
|
|
&& $time < 1200; |
208
|
|
|
|
|
|
|
return 'night1' if $time >= 2100; |
209
|
|
|
|
|
|
|
return 'night1' if $time < 600; |
210
|
|
|
|
|
|
|
} |
211
|
|
|
|
|
|
|
if($day_period_type eq 'selection') { |
212
|
|
|
|
|
|
|
return 'afternoon1' if $time >= 1200 |
213
|
|
|
|
|
|
|
&& $time < 1800; |
214
|
|
|
|
|
|
|
return 'evening1' if $time >= 1800 |
215
|
|
|
|
|
|
|
&& $time < 2100; |
216
|
|
|
|
|
|
|
return 'morning1' if $time >= 600 |
217
|
|
|
|
|
|
|
&& $time < 1200; |
218
|
|
|
|
|
|
|
return 'night1' if $time >= 2100; |
219
|
|
|
|
|
|
|
return 'night1' if $time < 600; |
220
|
|
|
|
|
|
|
} |
221
|
|
|
|
|
|
|
last SWITCH; |
222
|
|
|
|
|
|
|
} |
223
|
|
|
|
|
|
|
} |
224
|
|
|
|
|
|
|
} }, |
225
|
|
|
|
|
|
|
); |
226
|
|
|
|
|
|
|
|
227
|
|
|
|
|
|
|
around day_period_data => sub { |
228
|
|
|
|
|
|
|
my ($orig, $self) = @_; |
229
|
|
|
|
|
|
|
return $self->$orig; |
230
|
|
|
|
|
|
|
}; |
231
|
|
|
|
|
|
|
|
232
|
|
|
|
|
|
|
has 'day_periods' => ( |
233
|
|
|
|
|
|
|
is => 'ro', |
234
|
|
|
|
|
|
|
isa => HashRef, |
235
|
|
|
|
|
|
|
init_arg => undef, |
236
|
|
|
|
|
|
|
default => sub { { |
237
|
|
|
|
|
|
|
'gregorian' => { |
238
|
|
|
|
|
|
|
'format' => { |
239
|
|
|
|
|
|
|
'abbreviated' => { |
240
|
|
|
|
|
|
|
'afternoon1' => q{po pod.}, |
241
|
|
|
|
|
|
|
'evening1' => q{uveče}, |
242
|
|
|
|
|
|
|
'midnight' => q{ponoć}, |
243
|
|
|
|
|
|
|
'morning1' => q{jutro}, |
244
|
|
|
|
|
|
|
'night1' => q{noću}, |
245
|
|
|
|
|
|
|
'noon' => q{podne}, |
246
|
|
|
|
|
|
|
}, |
247
|
|
|
|
|
|
|
'narrow' => { |
248
|
|
|
|
|
|
|
'afternoon1' => q{po pod.}, |
249
|
|
|
|
|
|
|
'evening1' => q{veče}, |
250
|
|
|
|
|
|
|
'midnight' => q{ponoć}, |
251
|
|
|
|
|
|
|
'morning1' => q{jutro}, |
252
|
|
|
|
|
|
|
'night1' => q{noć}, |
253
|
|
|
|
|
|
|
'noon' => q{podne}, |
254
|
|
|
|
|
|
|
}, |
255
|
|
|
|
|
|
|
}, |
256
|
|
|
|
|
|
|
'stand-alone' => { |
257
|
|
|
|
|
|
|
'narrow' => { |
258
|
|
|
|
|
|
|
'am' => q{a}, |
259
|
|
|
|
|
|
|
'pm' => q{p}, |
260
|
|
|
|
|
|
|
}, |
261
|
|
|
|
|
|
|
}, |
262
|
|
|
|
|
|
|
}, |
263
|
|
|
|
|
|
|
} }, |
264
|
|
|
|
|
|
|
); |
265
|
|
|
|
|
|
|
|
266
|
|
|
|
|
|
|
has 'eras' => ( |
267
|
|
|
|
|
|
|
is => 'ro', |
268
|
|
|
|
|
|
|
isa => HashRef, |
269
|
|
|
|
|
|
|
init_arg => undef, |
270
|
|
|
|
|
|
|
default => sub { { |
271
|
|
|
|
|
|
|
'generic' => { |
272
|
|
|
|
|
|
|
}, |
273
|
|
|
|
|
|
|
'gregorian' => { |
274
|
|
|
|
|
|
|
}, |
275
|
|
|
|
|
|
|
} }, |
276
|
|
|
|
|
|
|
); |
277
|
|
|
|
|
|
|
|
278
|
|
|
|
|
|
|
has 'date_formats' => ( |
279
|
|
|
|
|
|
|
is => 'ro', |
280
|
|
|
|
|
|
|
isa => HashRef, |
281
|
|
|
|
|
|
|
init_arg => undef, |
282
|
|
|
|
|
|
|
default => sub { { |
283
|
|
|
|
|
|
|
'generic' => { |
284
|
|
|
|
|
|
|
}, |
285
|
|
|
|
|
|
|
'gregorian' => { |
286
|
|
|
|
|
|
|
}, |
287
|
|
|
|
|
|
|
} }, |
288
|
|
|
|
|
|
|
); |
289
|
|
|
|
|
|
|
|
290
|
|
|
|
|
|
|
has 'time_formats' => ( |
291
|
|
|
|
|
|
|
is => 'ro', |
292
|
|
|
|
|
|
|
isa => HashRef, |
293
|
|
|
|
|
|
|
init_arg => undef, |
294
|
|
|
|
|
|
|
default => sub { { |
295
|
|
|
|
|
|
|
'generic' => { |
296
|
|
|
|
|
|
|
}, |
297
|
|
|
|
|
|
|
'gregorian' => { |
298
|
|
|
|
|
|
|
}, |
299
|
|
|
|
|
|
|
} }, |
300
|
|
|
|
|
|
|
); |
301
|
|
|
|
|
|
|
|
302
|
|
|
|
|
|
|
has 'datetime_formats' => ( |
303
|
|
|
|
|
|
|
is => 'ro', |
304
|
|
|
|
|
|
|
isa => HashRef, |
305
|
|
|
|
|
|
|
init_arg => undef, |
306
|
|
|
|
|
|
|
default => sub { { |
307
|
|
|
|
|
|
|
'generic' => { |
308
|
|
|
|
|
|
|
}, |
309
|
|
|
|
|
|
|
'gregorian' => { |
310
|
|
|
|
|
|
|
}, |
311
|
|
|
|
|
|
|
} }, |
312
|
|
|
|
|
|
|
); |
313
|
|
|
|
|
|
|
|
314
|
|
|
|
|
|
|
has 'datetime_formats_available_formats' => ( |
315
|
|
|
|
|
|
|
is => 'ro', |
316
|
|
|
|
|
|
|
isa => HashRef, |
317
|
|
|
|
|
|
|
init_arg => undef, |
318
|
|
|
|
|
|
|
default => sub { { |
319
|
|
|
|
|
|
|
} }, |
320
|
|
|
|
|
|
|
); |
321
|
|
|
|
|
|
|
|
322
|
|
|
|
|
|
|
has 'datetime_formats_append_item' => ( |
323
|
|
|
|
|
|
|
is => 'ro', |
324
|
|
|
|
|
|
|
isa => HashRef, |
325
|
|
|
|
|
|
|
init_arg => undef, |
326
|
|
|
|
|
|
|
default => sub { { |
327
|
|
|
|
|
|
|
} }, |
328
|
|
|
|
|
|
|
); |
329
|
|
|
|
|
|
|
|
330
|
|
|
|
|
|
|
has 'datetime_formats_interval' => ( |
331
|
|
|
|
|
|
|
is => 'ro', |
332
|
|
|
|
|
|
|
isa => HashRef, |
333
|
|
|
|
|
|
|
init_arg => undef, |
334
|
|
|
|
|
|
|
default => sub { { |
335
|
|
|
|
|
|
|
'generic' => { |
336
|
|
|
|
|
|
|
MMMEd => { |
337
|
|
|
|
|
|
|
M => q{E, d. MMM – E, d. MMM}, |
338
|
|
|
|
|
|
|
d => q{E, d – E, d. MMM}, |
339
|
|
|
|
|
|
|
}, |
340
|
|
|
|
|
|
|
}, |
341
|
|
|
|
|
|
|
} }, |
342
|
|
|
|
|
|
|
); |
343
|
|
|
|
|
|
|
|
344
|
|
|
|
|
|
|
no Moo; |
345
|
1
|
|
|
1
|
|
1366
|
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
6
|
|
346
|
|
|
|
|
|
|
1; |
347
|
|
|
|
|
|
|
|
348
|
|
|
|
|
|
|
# vim: tabstop=4 |