line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
=encoding utf8 |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
=head1 NAME |
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
Locale::CLDR::Locales::Ru::Any::Ua - Package for language Russian |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
=cut |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
package Locale::CLDR::Locales::Ru::Any::Ua; |
10
|
|
|
|
|
|
|
# This file auto generated from Data\common\main\ru_UA.xml |
11
|
|
|
|
|
|
|
# on Fri 13 Oct 9:36:05 am GMT |
12
|
|
|
|
|
|
|
|
13
|
1
|
|
|
1
|
|
861
|
use strict; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
25
|
|
14
|
1
|
|
|
1
|
|
4
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
20
|
|
15
|
1
|
|
|
1
|
|
4
|
use version; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
4
|
|
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
our $VERSION = version->declare('v0.34.2'); |
18
|
|
|
|
|
|
|
|
19
|
1
|
|
|
1
|
|
106
|
use v5.10.1; |
|
1
|
|
|
|
|
4
|
|
20
|
1
|
|
|
1
|
|
5
|
use mro 'c3'; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
4
|
|
21
|
1
|
|
|
1
|
|
21
|
use utf8; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
5
|
|
22
|
1
|
|
|
1
|
|
42
|
use if $^V ge v5.12.0, feature => 'unicode_strings'; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
10
|
|
23
|
1
|
|
|
1
|
|
84
|
use Types::Standard qw( Str Int HashRef ArrayRef CodeRef RegexpRef ); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
4
|
|
24
|
1
|
|
|
1
|
|
899
|
use Moo; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
4
|
|
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
extends('Locale::CLDR::Locales::Ru::Any'); |
27
|
|
|
|
|
|
|
has 'display_name_region' => ( |
28
|
|
|
|
|
|
|
is => 'ro', |
29
|
|
|
|
|
|
|
isa => HashRef[Str], |
30
|
|
|
|
|
|
|
init_arg => undef, |
31
|
|
|
|
|
|
|
default => sub { |
32
|
|
|
|
|
|
|
{ |
33
|
|
|
|
|
|
|
'AC' => 'О-в Вознесения', |
34
|
|
|
|
|
|
|
'AE' => 'Объединенные Арабские Эмираты', |
35
|
|
|
|
|
|
|
'BV' => 'О-в Буве', |
36
|
|
|
|
|
|
|
'CK' => 'О-ва Кука', |
37
|
|
|
|
|
|
|
'CP' => 'О-в Клиппертон', |
38
|
|
|
|
|
|
|
'CX' => 'О-в Рождества', |
39
|
|
|
|
|
|
|
'HM' => 'О-ва Херд и Макдональд', |
40
|
|
|
|
|
|
|
'NF' => 'О-в Норфолк', |
41
|
|
|
|
|
|
|
'TL' => 'Тимор-Лесте', |
42
|
|
|
|
|
|
|
'UM' => 'Малые Тихоокеанские Отдаленные Острова США', |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
} |
45
|
|
|
|
|
|
|
}, |
46
|
|
|
|
|
|
|
); |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
has 'minimum_grouping_digits' => ( |
49
|
|
|
|
|
|
|
is =>'ro', |
50
|
|
|
|
|
|
|
isa => Int, |
51
|
|
|
|
|
|
|
init_arg => undef, |
52
|
|
|
|
|
|
|
default => 2, |
53
|
|
|
|
|
|
|
); |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
has 'day_period_data' => ( |
56
|
|
|
|
|
|
|
is => 'ro', |
57
|
|
|
|
|
|
|
isa => CodeRef, |
58
|
|
|
|
|
|
|
init_arg => undef, |
59
|
|
|
|
|
|
|
default => sub { sub { |
60
|
|
|
|
|
|
|
# Time in hhmm format |
61
|
|
|
|
|
|
|
my ($self, $type, $time, $day_period_type) = @_; |
62
|
|
|
|
|
|
|
$day_period_type //= 'default'; |
63
|
|
|
|
|
|
|
SWITCH: |
64
|
|
|
|
|
|
|
for ($type) { |
65
|
|
|
|
|
|
|
if ($_ eq 'generic') { |
66
|
|
|
|
|
|
|
if($day_period_type eq 'default') { |
67
|
|
|
|
|
|
|
return 'midnight' if $time == 0; |
68
|
|
|
|
|
|
|
return 'noon' if $time == 1200; |
69
|
|
|
|
|
|
|
return 'afternoon1' if $time >= 1200 |
70
|
|
|
|
|
|
|
&& $time < 1800; |
71
|
|
|
|
|
|
|
return 'evening1' if $time >= 1800 |
72
|
|
|
|
|
|
|
&& $time < 2400; |
73
|
|
|
|
|
|
|
return 'morning1' if $time >= 400 |
74
|
|
|
|
|
|
|
&& $time < 1200; |
75
|
|
|
|
|
|
|
return 'night1' if $time >= 0 |
76
|
|
|
|
|
|
|
&& $time < 400; |
77
|
|
|
|
|
|
|
} |
78
|
|
|
|
|
|
|
if($day_period_type eq 'selection') { |
79
|
|
|
|
|
|
|
return 'afternoon1' if $time >= 1200 |
80
|
|
|
|
|
|
|
&& $time < 1800; |
81
|
|
|
|
|
|
|
return 'evening1' if $time >= 1800 |
82
|
|
|
|
|
|
|
&& $time < 2400; |
83
|
|
|
|
|
|
|
return 'morning1' if $time >= 400 |
84
|
|
|
|
|
|
|
&& $time < 1200; |
85
|
|
|
|
|
|
|
return 'night1' if $time >= 0 |
86
|
|
|
|
|
|
|
&& $time < 400; |
87
|
|
|
|
|
|
|
} |
88
|
|
|
|
|
|
|
last SWITCH; |
89
|
|
|
|
|
|
|
} |
90
|
|
|
|
|
|
|
if ($_ eq 'gregorian') { |
91
|
|
|
|
|
|
|
if($day_period_type eq 'default') { |
92
|
|
|
|
|
|
|
return 'midnight' if $time == 0; |
93
|
|
|
|
|
|
|
return 'noon' if $time == 1200; |
94
|
|
|
|
|
|
|
return 'afternoon1' if $time >= 1200 |
95
|
|
|
|
|
|
|
&& $time < 1800; |
96
|
|
|
|
|
|
|
return 'evening1' if $time >= 1800 |
97
|
|
|
|
|
|
|
&& $time < 2400; |
98
|
|
|
|
|
|
|
return 'morning1' if $time >= 400 |
99
|
|
|
|
|
|
|
&& $time < 1200; |
100
|
|
|
|
|
|
|
return 'night1' if $time >= 0 |
101
|
|
|
|
|
|
|
&& $time < 400; |
102
|
|
|
|
|
|
|
} |
103
|
|
|
|
|
|
|
if($day_period_type eq 'selection') { |
104
|
|
|
|
|
|
|
return 'afternoon1' if $time >= 1200 |
105
|
|
|
|
|
|
|
&& $time < 1800; |
106
|
|
|
|
|
|
|
return 'evening1' if $time >= 1800 |
107
|
|
|
|
|
|
|
&& $time < 2400; |
108
|
|
|
|
|
|
|
return 'morning1' if $time >= 400 |
109
|
|
|
|
|
|
|
&& $time < 1200; |
110
|
|
|
|
|
|
|
return 'night1' if $time >= 0 |
111
|
|
|
|
|
|
|
&& $time < 400; |
112
|
|
|
|
|
|
|
} |
113
|
|
|
|
|
|
|
last SWITCH; |
114
|
|
|
|
|
|
|
} |
115
|
|
|
|
|
|
|
} |
116
|
|
|
|
|
|
|
} }, |
117
|
|
|
|
|
|
|
); |
118
|
|
|
|
|
|
|
|
119
|
|
|
|
|
|
|
around day_period_data => sub { |
120
|
|
|
|
|
|
|
my ($orig, $self) = @_; |
121
|
|
|
|
|
|
|
return $self->$orig; |
122
|
|
|
|
|
|
|
}; |
123
|
|
|
|
|
|
|
|
124
|
|
|
|
|
|
|
has 'eras' => ( |
125
|
|
|
|
|
|
|
is => 'ro', |
126
|
|
|
|
|
|
|
isa => HashRef, |
127
|
|
|
|
|
|
|
init_arg => undef, |
128
|
|
|
|
|
|
|
default => sub { { |
129
|
|
|
|
|
|
|
'generic' => { |
130
|
|
|
|
|
|
|
}, |
131
|
|
|
|
|
|
|
'gregorian' => { |
132
|
|
|
|
|
|
|
}, |
133
|
|
|
|
|
|
|
} }, |
134
|
|
|
|
|
|
|
); |
135
|
|
|
|
|
|
|
|
136
|
|
|
|
|
|
|
has 'date_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 'time_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' => ( |
161
|
|
|
|
|
|
|
is => 'ro', |
162
|
|
|
|
|
|
|
isa => HashRef, |
163
|
|
|
|
|
|
|
init_arg => undef, |
164
|
|
|
|
|
|
|
default => sub { { |
165
|
|
|
|
|
|
|
'generic' => { |
166
|
|
|
|
|
|
|
}, |
167
|
|
|
|
|
|
|
'gregorian' => { |
168
|
|
|
|
|
|
|
}, |
169
|
|
|
|
|
|
|
} }, |
170
|
|
|
|
|
|
|
); |
171
|
|
|
|
|
|
|
|
172
|
|
|
|
|
|
|
has 'datetime_formats_available_formats' => ( |
173
|
|
|
|
|
|
|
is => 'ro', |
174
|
|
|
|
|
|
|
isa => HashRef, |
175
|
|
|
|
|
|
|
init_arg => undef, |
176
|
|
|
|
|
|
|
default => sub { { |
177
|
|
|
|
|
|
|
'gregorian' => { |
178
|
|
|
|
|
|
|
GyMMM => q{LLL y 'г'. G}, |
179
|
|
|
|
|
|
|
yMEd => q{ccc, d.MM.y}, |
180
|
|
|
|
|
|
|
}, |
181
|
|
|
|
|
|
|
} }, |
182
|
|
|
|
|
|
|
); |
183
|
|
|
|
|
|
|
|
184
|
|
|
|
|
|
|
has 'datetime_formats_append_item' => ( |
185
|
|
|
|
|
|
|
is => 'ro', |
186
|
|
|
|
|
|
|
isa => HashRef, |
187
|
|
|
|
|
|
|
init_arg => undef, |
188
|
|
|
|
|
|
|
default => sub { { |
189
|
|
|
|
|
|
|
} }, |
190
|
|
|
|
|
|
|
); |
191
|
|
|
|
|
|
|
|
192
|
|
|
|
|
|
|
has 'datetime_formats_interval' => ( |
193
|
|
|
|
|
|
|
is => 'ro', |
194
|
|
|
|
|
|
|
isa => HashRef, |
195
|
|
|
|
|
|
|
init_arg => undef, |
196
|
|
|
|
|
|
|
default => sub { { |
197
|
|
|
|
|
|
|
'generic' => { |
198
|
|
|
|
|
|
|
H => { |
199
|
|
|
|
|
|
|
H => q{HH–HH 'ч'.}, |
200
|
|
|
|
|
|
|
}, |
201
|
|
|
|
|
|
|
Hv => { |
202
|
|
|
|
|
|
|
H => q{HH–HH 'ч'., v}, |
203
|
|
|
|
|
|
|
}, |
204
|
|
|
|
|
|
|
MMMEd => { |
205
|
|
|
|
|
|
|
M => q{E, d MMM – E, d MMM}, |
206
|
|
|
|
|
|
|
d => q{E, d – E, d MMM}, |
207
|
|
|
|
|
|
|
}, |
208
|
|
|
|
|
|
|
h => { |
209
|
|
|
|
|
|
|
h => q{h–h 'ч'. a}, |
210
|
|
|
|
|
|
|
}, |
211
|
|
|
|
|
|
|
hv => { |
212
|
|
|
|
|
|
|
h => q{h–h 'ч'. a, v}, |
213
|
|
|
|
|
|
|
}, |
214
|
|
|
|
|
|
|
yMEd => { |
215
|
|
|
|
|
|
|
M => q{E, dd.MM.y – E, dd.MM.y}, |
216
|
|
|
|
|
|
|
d => q{E, dd.MM.y – E, dd.MM.y}, |
217
|
|
|
|
|
|
|
y => q{E, dd.MM.y – E, dd.MM.y}, |
218
|
|
|
|
|
|
|
}, |
219
|
|
|
|
|
|
|
yMMM => { |
220
|
|
|
|
|
|
|
M => q{MMM–MMM y}, |
221
|
|
|
|
|
|
|
y => q{MMM y – MMM y}, |
222
|
|
|
|
|
|
|
}, |
223
|
|
|
|
|
|
|
yMMMEd => { |
224
|
|
|
|
|
|
|
M => q{E, d MMM – E, d MMM y 'г'.}, |
225
|
|
|
|
|
|
|
d => q{E, d – E, d MMM y 'г'.}, |
226
|
|
|
|
|
|
|
y => q{E, d MMM y – E, d MMM y 'г'.}, |
227
|
|
|
|
|
|
|
}, |
228
|
|
|
|
|
|
|
yMMMM => { |
229
|
|
|
|
|
|
|
M => q{LLLL–LLLL y}, |
230
|
|
|
|
|
|
|
y => q{LLLL y – LLLL y}, |
231
|
|
|
|
|
|
|
}, |
232
|
|
|
|
|
|
|
yMMMd => { |
233
|
|
|
|
|
|
|
M => q{d MMM – d MMM y}, |
234
|
|
|
|
|
|
|
d => q{d–d MMM y}, |
235
|
|
|
|
|
|
|
y => q{d MMM y – d MMM y}, |
236
|
|
|
|
|
|
|
}, |
237
|
|
|
|
|
|
|
}, |
238
|
|
|
|
|
|
|
'gregorian' => { |
239
|
|
|
|
|
|
|
yMMM => { |
240
|
|
|
|
|
|
|
y => q{LLL y – LLL y}, |
241
|
|
|
|
|
|
|
}, |
242
|
|
|
|
|
|
|
yMMMEd => { |
243
|
|
|
|
|
|
|
y => q{ccc, d MMM y – ccc, d MMM y}, |
244
|
|
|
|
|
|
|
}, |
245
|
|
|
|
|
|
|
yMMMM => { |
246
|
|
|
|
|
|
|
y => q{LLLL y – LLLL y}, |
247
|
|
|
|
|
|
|
}, |
248
|
|
|
|
|
|
|
yMMMd => { |
249
|
|
|
|
|
|
|
y => q{d MMM y – d MMM y}, |
250
|
|
|
|
|
|
|
}, |
251
|
|
|
|
|
|
|
}, |
252
|
|
|
|
|
|
|
} }, |
253
|
|
|
|
|
|
|
); |
254
|
|
|
|
|
|
|
|
255
|
1
|
|
|
1
|
|
1087
|
no Moo; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
4
|
|
256
|
|
|
|
|
|
|
|
257
|
|
|
|
|
|
|
1; |
258
|
|
|
|
|
|
|
|
259
|
|
|
|
|
|
|
# vim: tabstop=4 |