File Coverage

blib/lib/Locale/CLDR/Locales/Ru/Any/Ua.pm
Criterion Covered Total %
statement 29 29 100.0
branch n/a
condition n/a
subroutine 10 10 100.0
pod n/a
total 39 39 100.0


line stmt bran cond sub pod time code
1             =encoding utf8
2              
3             =head1
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 Sun 16 Dec 4:35:30 pm GMT
12              
13 1     1   883 use strict;
  1         2  
  1         24  
14 1     1   4 use warnings;
  1         3  
  1         36  
15 1     1   5 use version;
  1         1  
  1         6  
16              
17             our $VERSION = version->declare('v0.34.0');
18              
19 1     1   89 use v5.10.1;
  1         3  
20 1     1   5 use mro 'c3';
  1         2  
  1         5  
21 1     1   23 use utf8;
  1         2  
  1         5  
22 1     1   37 use if $^V ge v5.12.0, feature => 'unicode_strings';
  1         2  
  1         11  
23 1     1   86 use Types::Standard qw( Str Int HashRef ArrayRef CodeRef RegexpRef );
  1         2  
  1         6  
24 1     1   948 use Moo;
  1         2  
  1         5  
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 'selection') {
67             return 'night1' if $time >= 0
68             && $time < 400;
69             return 'evening1' if $time >= 1800
70             && $time < 2400;
71             return 'morning1' if $time >= 400
72             && $time < 1200;
73             return 'afternoon1' if $time >= 1200
74             && $time < 1800;
75             }
76             if($day_period_type eq 'default') {
77             return 'noon' if $time == 1200;
78             return 'midnight' if $time == 0;
79             return 'afternoon1' if $time >= 1200
80             && $time < 1800;
81             return 'morning1' if $time >= 400
82             && $time < 1200;
83             return 'evening1' if $time >= 1800
84             && $time < 2400;
85             return 'night1' if $time >= 0
86             && $time < 400;
87             }
88             last SWITCH;
89             }
90             if ($_ eq 'gregorian') {
91             if($day_period_type eq 'selection') {
92             return 'night1' if $time >= 0
93             && $time < 400;
94             return 'evening1' if $time >= 1800
95             && $time < 2400;
96             return 'morning1' if $time >= 400
97             && $time < 1200;
98             return 'afternoon1' if $time >= 1200
99             && $time < 1800;
100             }
101             if($day_period_type eq 'default') {
102             return 'noon' if $time == 1200;
103             return 'midnight' if $time == 0;
104             return 'afternoon1' if $time >= 1200
105             && $time < 1800;
106             return 'morning1' if $time >= 400
107             && $time < 1200;
108             return 'evening1' if $time >= 1800
109             && $time < 2400;
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   1063 no Moo;
  1         2  
  1         5  
256              
257             1;
258              
259             # vim: tabstop=4