line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
=head1 |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
Locale::CLDR::Locales::Ru::Any::Ua - Package for language Russian |
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
=cut |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
package Locale::CLDR::Locales::Ru::Any::Ua; |
8
|
|
|
|
|
|
|
# This file auto generated from Data\common\main\ru_UA.xml |
9
|
|
|
|
|
|
|
# on Sun 24 Apr 8:48:50 am GMT |
10
|
|
|
|
|
|
|
|
11
|
1
|
|
|
1
|
|
909
|
use version; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
5
|
|
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
our $VERSION = version->declare('v0.29.0'); |
14
|
|
|
|
|
|
|
|
15
|
1
|
|
|
1
|
|
78
|
use v5.10.1; |
|
1
|
|
|
|
|
2
|
|
16
|
1
|
|
|
1
|
|
4
|
use mro 'c3'; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
4
|
|
17
|
1
|
|
|
1
|
|
27
|
use utf8; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
4
|
|
18
|
1
|
|
|
1
|
|
24
|
use if $^V ge v5.12.0, feature => 'unicode_strings'; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
9
|
|
19
|
|
|
|
|
|
|
|
20
|
1
|
|
|
1
|
|
93
|
use Types::Standard qw( Str Int HashRef ArrayRef CodeRef RegexpRef ); |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
5
|
|
21
|
1
|
|
|
1
|
|
684
|
use Moo; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
5
|
|
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
extends('Locale::CLDR::Locales::Ru::Any'); |
24
|
|
|
|
|
|
|
has 'day_period_data' => ( |
25
|
|
|
|
|
|
|
is => 'ro', |
26
|
|
|
|
|
|
|
isa => CodeRef, |
27
|
|
|
|
|
|
|
init_arg => undef, |
28
|
|
|
|
|
|
|
default => sub { sub { |
29
|
|
|
|
|
|
|
# Time in hhmm format |
30
|
|
|
|
|
|
|
my ($self, $type, $time, $day_period_type) = @_; |
31
|
|
|
|
|
|
|
$day_period_type //= 'default'; |
32
|
|
|
|
|
|
|
SWITCH: |
33
|
|
|
|
|
|
|
for ($type) { |
34
|
|
|
|
|
|
|
if ($_ eq 'generic') { |
35
|
|
|
|
|
|
|
if($day_period_type eq 'selection') { |
36
|
|
|
|
|
|
|
return 'evening1' if $time >= 1800 |
37
|
|
|
|
|
|
|
&& $time < 2400; |
38
|
|
|
|
|
|
|
return 'night1' if $time >= 0 |
39
|
|
|
|
|
|
|
&& $time < 400; |
40
|
|
|
|
|
|
|
return 'afternoon1' if $time >= 1200 |
41
|
|
|
|
|
|
|
&& $time < 1800; |
42
|
|
|
|
|
|
|
return 'morning1' if $time >= 400 |
43
|
|
|
|
|
|
|
&& $time < 1200; |
44
|
|
|
|
|
|
|
} |
45
|
|
|
|
|
|
|
if($day_period_type eq 'default') { |
46
|
|
|
|
|
|
|
return 'noon' if $time == 1200; |
47
|
|
|
|
|
|
|
return 'midnight' if $time == 0; |
48
|
|
|
|
|
|
|
return 'night1' if $time >= 0 |
49
|
|
|
|
|
|
|
&& $time < 400; |
50
|
|
|
|
|
|
|
return 'afternoon1' if $time >= 1200 |
51
|
|
|
|
|
|
|
&& $time < 1800; |
52
|
|
|
|
|
|
|
return 'morning1' if $time >= 400 |
53
|
|
|
|
|
|
|
&& $time < 1200; |
54
|
|
|
|
|
|
|
return 'evening1' if $time >= 1800 |
55
|
|
|
|
|
|
|
&& $time < 2400; |
56
|
|
|
|
|
|
|
} |
57
|
|
|
|
|
|
|
last SWITCH; |
58
|
|
|
|
|
|
|
} |
59
|
|
|
|
|
|
|
if ($_ eq 'gregorian') { |
60
|
|
|
|
|
|
|
if($day_period_type eq 'selection') { |
61
|
|
|
|
|
|
|
return 'evening1' if $time >= 1800 |
62
|
|
|
|
|
|
|
&& $time < 2400; |
63
|
|
|
|
|
|
|
return 'night1' if $time >= 0 |
64
|
|
|
|
|
|
|
&& $time < 400; |
65
|
|
|
|
|
|
|
return 'afternoon1' if $time >= 1200 |
66
|
|
|
|
|
|
|
&& $time < 1800; |
67
|
|
|
|
|
|
|
return 'morning1' if $time >= 400 |
68
|
|
|
|
|
|
|
&& $time < 1200; |
69
|
|
|
|
|
|
|
} |
70
|
|
|
|
|
|
|
if($day_period_type eq 'default') { |
71
|
|
|
|
|
|
|
return 'noon' if $time == 1200; |
72
|
|
|
|
|
|
|
return 'midnight' if $time == 0; |
73
|
|
|
|
|
|
|
return 'night1' if $time >= 0 |
74
|
|
|
|
|
|
|
&& $time < 400; |
75
|
|
|
|
|
|
|
return 'afternoon1' if $time >= 1200 |
76
|
|
|
|
|
|
|
&& $time < 1800; |
77
|
|
|
|
|
|
|
return 'morning1' if $time >= 400 |
78
|
|
|
|
|
|
|
&& $time < 1200; |
79
|
|
|
|
|
|
|
return 'evening1' if $time >= 1800 |
80
|
|
|
|
|
|
|
&& $time < 2400; |
81
|
|
|
|
|
|
|
} |
82
|
|
|
|
|
|
|
last SWITCH; |
83
|
|
|
|
|
|
|
} |
84
|
|
|
|
|
|
|
} |
85
|
|
|
|
|
|
|
} }, |
86
|
|
|
|
|
|
|
); |
87
|
|
|
|
|
|
|
|
88
|
|
|
|
|
|
|
around day_period_data => sub { |
89
|
|
|
|
|
|
|
my ($orig, $self) = @_; |
90
|
|
|
|
|
|
|
return $self->$orig; |
91
|
|
|
|
|
|
|
}; |
92
|
|
|
|
|
|
|
|
93
|
|
|
|
|
|
|
has 'eras' => ( |
94
|
|
|
|
|
|
|
is => 'ro', |
95
|
|
|
|
|
|
|
isa => HashRef, |
96
|
|
|
|
|
|
|
init_arg => undef, |
97
|
|
|
|
|
|
|
default => sub { { |
98
|
|
|
|
|
|
|
'generic' => { |
99
|
|
|
|
|
|
|
}, |
100
|
|
|
|
|
|
|
'gregorian' => { |
101
|
|
|
|
|
|
|
}, |
102
|
|
|
|
|
|
|
} }, |
103
|
|
|
|
|
|
|
); |
104
|
|
|
|
|
|
|
|
105
|
|
|
|
|
|
|
has 'date_formats' => ( |
106
|
|
|
|
|
|
|
is => 'ro', |
107
|
|
|
|
|
|
|
isa => HashRef, |
108
|
|
|
|
|
|
|
init_arg => undef, |
109
|
|
|
|
|
|
|
default => sub { { |
110
|
|
|
|
|
|
|
'generic' => { |
111
|
|
|
|
|
|
|
}, |
112
|
|
|
|
|
|
|
'gregorian' => { |
113
|
|
|
|
|
|
|
}, |
114
|
|
|
|
|
|
|
} }, |
115
|
|
|
|
|
|
|
); |
116
|
|
|
|
|
|
|
|
117
|
|
|
|
|
|
|
has 'time_formats' => ( |
118
|
|
|
|
|
|
|
is => 'ro', |
119
|
|
|
|
|
|
|
isa => HashRef, |
120
|
|
|
|
|
|
|
init_arg => undef, |
121
|
|
|
|
|
|
|
default => sub { { |
122
|
|
|
|
|
|
|
'generic' => { |
123
|
|
|
|
|
|
|
'full' => q{HH:mm:ss zzzz}, |
124
|
|
|
|
|
|
|
'long' => q{HH:mm:ss z}, |
125
|
|
|
|
|
|
|
'medium' => q{HH:mm:ss}, |
126
|
|
|
|
|
|
|
'short' => q{HH:mm}, |
127
|
|
|
|
|
|
|
}, |
128
|
|
|
|
|
|
|
'gregorian' => { |
129
|
|
|
|
|
|
|
'full' => q{HH:mm:ss zzzz}, |
130
|
|
|
|
|
|
|
'long' => q{HH:mm:ss z}, |
131
|
|
|
|
|
|
|
'medium' => q{HH:mm:ss}, |
132
|
|
|
|
|
|
|
'short' => q{HH:mm}, |
133
|
|
|
|
|
|
|
}, |
134
|
|
|
|
|
|
|
} }, |
135
|
|
|
|
|
|
|
); |
136
|
|
|
|
|
|
|
|
137
|
|
|
|
|
|
|
has 'datetime_formats' => ( |
138
|
|
|
|
|
|
|
is => 'ro', |
139
|
|
|
|
|
|
|
isa => HashRef, |
140
|
|
|
|
|
|
|
init_arg => undef, |
141
|
|
|
|
|
|
|
default => sub { { |
142
|
|
|
|
|
|
|
'generic' => { |
143
|
|
|
|
|
|
|
}, |
144
|
|
|
|
|
|
|
'gregorian' => { |
145
|
|
|
|
|
|
|
}, |
146
|
|
|
|
|
|
|
} }, |
147
|
|
|
|
|
|
|
); |
148
|
|
|
|
|
|
|
|
149
|
|
|
|
|
|
|
has 'datetime_formats_available_formats' => ( |
150
|
|
|
|
|
|
|
is => 'ro', |
151
|
|
|
|
|
|
|
isa => HashRef, |
152
|
|
|
|
|
|
|
init_arg => undef, |
153
|
|
|
|
|
|
|
default => sub { { |
154
|
|
|
|
|
|
|
} }, |
155
|
|
|
|
|
|
|
); |
156
|
|
|
|
|
|
|
|
157
|
|
|
|
|
|
|
has 'datetime_formats_append_item' => ( |
158
|
|
|
|
|
|
|
is => 'ro', |
159
|
|
|
|
|
|
|
isa => HashRef, |
160
|
|
|
|
|
|
|
init_arg => undef, |
161
|
|
|
|
|
|
|
default => sub { { |
162
|
|
|
|
|
|
|
} }, |
163
|
|
|
|
|
|
|
); |
164
|
|
|
|
|
|
|
|
165
|
|
|
|
|
|
|
has 'datetime_formats_interval' => ( |
166
|
|
|
|
|
|
|
is => 'ro', |
167
|
|
|
|
|
|
|
isa => HashRef, |
168
|
|
|
|
|
|
|
init_arg => undef, |
169
|
|
|
|
|
|
|
default => sub { { |
170
|
|
|
|
|
|
|
'gregorian' => { |
171
|
|
|
|
|
|
|
H => { |
172
|
|
|
|
|
|
|
H => q{HHâHH 'Ñ'.}, |
173
|
|
|
|
|
|
|
}, |
174
|
|
|
|
|
|
|
Hv => { |
175
|
|
|
|
|
|
|
H => q{HHâHH 'Ñ'., v}, |
176
|
|
|
|
|
|
|
}, |
177
|
|
|
|
|
|
|
MMMEd => { |
178
|
|
|
|
|
|
|
d => q{E, d â E, d MMM}, |
179
|
|
|
|
|
|
|
}, |
180
|
|
|
|
|
|
|
h => { |
181
|
|
|
|
|
|
|
h => q{hâh 'Ñ'. a}, |
182
|
|
|
|
|
|
|
}, |
183
|
|
|
|
|
|
|
hv => { |
184
|
|
|
|
|
|
|
h => q{hâh 'Ñ'. a, v}, |
185
|
|
|
|
|
|
|
}, |
186
|
|
|
|
|
|
|
yMEd => { |
187
|
|
|
|
|
|
|
M => q{E, dd.MM.y â E, dd.MM.y}, |
188
|
|
|
|
|
|
|
d => q{E, dd.MM.y â E, dd.MM.y}, |
189
|
|
|
|
|
|
|
y => q{E, dd.MM.y â E, dd.MM.y}, |
190
|
|
|
|
|
|
|
}, |
191
|
|
|
|
|
|
|
yMMM => { |
192
|
|
|
|
|
|
|
M => q{MMMâMMM y}, |
193
|
|
|
|
|
|
|
y => q{MMM y â MMM y}, |
194
|
|
|
|
|
|
|
}, |
195
|
|
|
|
|
|
|
yMMMEd => { |
196
|
|
|
|
|
|
|
M => q{E, d MMM â E, d MMM y 'г'.}, |
197
|
|
|
|
|
|
|
d => q{E, d â E, d MMM y 'г'.}, |
198
|
|
|
|
|
|
|
y => q{E, d MMM y â E, d MMM y 'г'.}, |
199
|
|
|
|
|
|
|
}, |
200
|
|
|
|
|
|
|
yMMMM => { |
201
|
|
|
|
|
|
|
M => q{LLLLâLLLL y}, |
202
|
|
|
|
|
|
|
y => q{LLLL y â LLLL y}, |
203
|
|
|
|
|
|
|
}, |
204
|
|
|
|
|
|
|
yMMMd => { |
205
|
|
|
|
|
|
|
M => q{d MMM â d MMM y}, |
206
|
|
|
|
|
|
|
d => q{dâd MMM y}, |
207
|
|
|
|
|
|
|
y => q{d MMM y â d MMM y}, |
208
|
|
|
|
|
|
|
}, |
209
|
|
|
|
|
|
|
}, |
210
|
|
|
|
|
|
|
'generic' => { |
211
|
|
|
|
|
|
|
H => { |
212
|
|
|
|
|
|
|
H => q{HHâHH 'Ñ'.}, |
213
|
|
|
|
|
|
|
}, |
214
|
|
|
|
|
|
|
Hv => { |
215
|
|
|
|
|
|
|
H => q{HHâHH 'Ñ'., v}, |
216
|
|
|
|
|
|
|
}, |
217
|
|
|
|
|
|
|
MMMEd => { |
218
|
|
|
|
|
|
|
M => q{E, d MMM â E, d MMM}, |
219
|
|
|
|
|
|
|
d => q{E, d â E, d MMM}, |
220
|
|
|
|
|
|
|
}, |
221
|
|
|
|
|
|
|
h => { |
222
|
|
|
|
|
|
|
h => q{hâh 'Ñ'. a}, |
223
|
|
|
|
|
|
|
}, |
224
|
|
|
|
|
|
|
hv => { |
225
|
|
|
|
|
|
|
h => q{hâh 'Ñ'. a, v}, |
226
|
|
|
|
|
|
|
}, |
227
|
|
|
|
|
|
|
yMEd => { |
228
|
|
|
|
|
|
|
M => q{E, dd.MM.y â E, dd.MM.y}, |
229
|
|
|
|
|
|
|
d => q{E, dd.MM.y â E, dd.MM.y}, |
230
|
|
|
|
|
|
|
y => q{E, dd.MM.y â E, dd.MM.y}, |
231
|
|
|
|
|
|
|
}, |
232
|
|
|
|
|
|
|
yMMM => { |
233
|
|
|
|
|
|
|
M => q{MMMâMMM y}, |
234
|
|
|
|
|
|
|
y => q{MMM y â MMM y}, |
235
|
|
|
|
|
|
|
}, |
236
|
|
|
|
|
|
|
yMMMEd => { |
237
|
|
|
|
|
|
|
M => q{E, d MMM â E, d MMM y 'г'.}, |
238
|
|
|
|
|
|
|
d => q{E, d â E, d MMM y 'г'.}, |
239
|
|
|
|
|
|
|
y => q{E, d MMM y â E, d MMM y 'г'.}, |
240
|
|
|
|
|
|
|
}, |
241
|
|
|
|
|
|
|
yMMMM => { |
242
|
|
|
|
|
|
|
M => q{LLLLâLLLL y}, |
243
|
|
|
|
|
|
|
y => q{LLLL y â LLLL y}, |
244
|
|
|
|
|
|
|
}, |
245
|
|
|
|
|
|
|
yMMMd => { |
246
|
|
|
|
|
|
|
M => q{d MMM â d MMM y}, |
247
|
|
|
|
|
|
|
d => q{dâd MMM y}, |
248
|
|
|
|
|
|
|
y => q{d MMM y â d MMM y}, |
249
|
|
|
|
|
|
|
}, |
250
|
|
|
|
|
|
|
}, |
251
|
|
|
|
|
|
|
} }, |
252
|
|
|
|
|
|
|
); |
253
|
|
|
|
|
|
|
|
254
|
1
|
|
|
1
|
|
2390
|
no Moo; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
5
|
|
255
|
|
|
|
|
|
|
|
256
|
|
|
|
|
|
|
1; |
257
|
|
|
|
|
|
|
|
258
|
|
|
|
|
|
|
# vim: tabstop=4 |