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