File Coverage

blib/lib/Locale/CLDR/Locales/It/Any/Ch.pm
Criterion Covered Total %
statement 32 32 100.0
branch n/a
condition n/a
subroutine 11 11 100.0
pod n/a
total 43 43 100.0


line stmt bran cond sub pod time code
1             =encoding utf8
2              
3             =head1 NAME
4              
5             Locale::CLDR::Locales::It::Any::Ch - Package for language Italian
6              
7             =cut
8              
9             package Locale::CLDR::Locales::It::Any::Ch;
10             # This file auto generated from Data\common\main\it_CH.xml
11             # on Fri 13 Oct 9:21:57 am GMT
12              
13 1     1   1457 use strict;
  1         2  
  1         28  
14 1     1   5 use warnings;
  1         2  
  1         24  
15 1     1   5 use version;
  1         2  
  1         13  
16              
17             our $VERSION = version->declare('v0.34.2');
18              
19 1     1   97 use v5.10.1;
  1         3  
20 1     1   5 use mro 'c3';
  1         1  
  1         7  
21 1     1   35 use utf8;
  1         2  
  1         8  
22 1     1   32 use if $^V ge v5.12.0, feature => 'unicode_strings';
  1         1  
  1         13  
23 1     1   113 use Types::Standard qw( Str Int HashRef ArrayRef CodeRef RegexpRef );
  1         2  
  1         8  
24 1     1   994 use Moo;
  1         2  
  1         6  
25              
26             extends('Locale::CLDR::Locales::It::Any');
27             has 'characters' => (
28             is => 'ro',
29             isa => HashRef,
30             init_arg => undef,
31             default => $^V ge v5.18.0
32             ? eval <<'EOT'
33             sub {
34             no warnings 'experimental::regex_sets';
35             return {
36             numbers => qr{[\- . ’ % ‰ + 0 1 2 3 4 5 6 7 8 9]},
37             };
38             },
39             EOT
40             : sub {
41             return {};
42             },
43 1     1   135 );
  1         2  
  1         74  
44              
45              
46             has 'alternate_quote_start' => (
47             is => 'ro',
48             isa => Str,
49             init_arg => undef,
50             default => qq{‹},
51             );
52              
53             has 'alternate_quote_end' => (
54             is => 'ro',
55             isa => Str,
56             init_arg => undef,
57             default => qq{›},
58             );
59              
60             has 'number_symbols' => (
61             is => 'ro',
62             isa => HashRef,
63             init_arg => undef,
64             default => sub { {
65             'latn' => {
66             'decimal' => q(.),
67             'group' => q(’),
68             },
69             } }
70             );
71              
72             has 'number_currency_formats' => (
73             is => 'ro',
74             isa => HashRef,
75             init_arg => undef,
76             default => sub { {
77             'latn' => {
78             'pattern' => {
79             'default' => {
80             'standard' => {
81             'negative' => '¤-#,##0.00',
82             'positive' => '¤ #,##0.00',
83             },
84             },
85             },
86             },
87             } },
88             );
89              
90             has 'day_period_data' => (
91             is => 'ro',
92             isa => CodeRef,
93             init_arg => undef,
94             default => sub { sub {
95             # Time in hhmm format
96             my ($self, $type, $time, $day_period_type) = @_;
97             $day_period_type //= 'default';
98             SWITCH:
99             for ($type) {
100             if ($_ eq 'generic') {
101             if($day_period_type eq 'default') {
102             return 'midnight' if $time == 0;
103             return 'noon' if $time == 1200;
104             return 'afternoon1' if $time >= 1200
105             && $time < 1800;
106             return 'evening1' if $time >= 1800
107             && $time < 2400;
108             return 'morning1' if $time >= 600
109             && $time < 1200;
110             return 'night1' if $time >= 0
111             && $time < 600;
112             }
113             if($day_period_type eq 'selection') {
114             return 'afternoon1' if $time >= 1200
115             && $time < 1800;
116             return 'evening1' if $time >= 1800
117             && $time < 2400;
118             return 'morning1' if $time >= 600
119             && $time < 1200;
120             return 'night1' if $time >= 0
121             && $time < 600;
122             }
123             last SWITCH;
124             }
125             if ($_ eq 'gregorian') {
126             if($day_period_type eq 'default') {
127             return 'midnight' if $time == 0;
128             return 'noon' if $time == 1200;
129             return 'afternoon1' if $time >= 1200
130             && $time < 1800;
131             return 'evening1' if $time >= 1800
132             && $time < 2400;
133             return 'morning1' if $time >= 600
134             && $time < 1200;
135             return 'night1' if $time >= 0
136             && $time < 600;
137             }
138             if($day_period_type eq 'selection') {
139             return 'afternoon1' if $time >= 1200
140             && $time < 1800;
141             return 'evening1' if $time >= 1800
142             && $time < 2400;
143             return 'morning1' if $time >= 600
144             && $time < 1200;
145             return 'night1' if $time >= 0
146             && $time < 600;
147             }
148             last SWITCH;
149             }
150             }
151             } },
152             );
153              
154             around day_period_data => sub {
155             my ($orig, $self) = @_;
156             return $self->$orig;
157             };
158              
159             has 'eras' => (
160             is => 'ro',
161             isa => HashRef,
162             init_arg => undef,
163             default => sub { {
164             'generic' => {
165             },
166             'gregorian' => {
167             },
168             } },
169             );
170              
171             has 'date_formats' => (
172             is => 'ro',
173             isa => HashRef,
174             init_arg => undef,
175             default => sub { {
176             'generic' => {
177             'full' => q{EEEE, d MMMM y G},
178             'long' => q{d MMMM y G},
179             'medium' => q{d MMM y G},
180             'short' => q{dd.MM.yy GGGGG},
181             },
182             'gregorian' => {
183             'full' => q{EEEE, d MMMM y},
184             'short' => q{dd.MM.yy},
185             },
186             } },
187             );
188              
189             has 'time_formats' => (
190             is => 'ro',
191             isa => HashRef,
192             init_arg => undef,
193             default => sub { {
194             'generic' => {
195             },
196             'gregorian' => {
197             },
198             } },
199             );
200              
201             has 'datetime_formats' => (
202             is => 'ro',
203             isa => HashRef,
204             init_arg => undef,
205             default => sub { {
206             'generic' => {
207             },
208             'gregorian' => {
209             },
210             } },
211             );
212              
213             has 'datetime_formats_available_formats' => (
214             is => 'ro',
215             isa => HashRef,
216             init_arg => undef,
217             default => sub { {
218             'generic' => {
219             HHmm => q{HH:mm},
220             HHmmss => q{HH:mm:ss},
221             MMdd => q{dd.MM},
222             hhmm => q{hh:mm a},
223             hhmmss => q{hh:mm:ss a},
224             yMM => q{MM.y GGGGG},
225             },
226             'gregorian' => {
227             HHmm => q{HH:mm},
228             HHmmss => q{HH:mm:ss},
229             MMdd => q{dd.MM},
230             hhmm => q{hh:mm a},
231             hhmmss => q{hh:mm:ss a},
232             yMM => q{MM.y},
233             },
234             } },
235             );
236              
237             has 'datetime_formats_append_item' => (
238             is => 'ro',
239             isa => HashRef,
240             init_arg => undef,
241             default => sub { {
242             } },
243             );
244              
245             has 'datetime_formats_interval' => (
246             is => 'ro',
247             isa => HashRef,
248             init_arg => undef,
249             default => sub { {
250             'generic' => {
251             MEd => {
252             M => q{E, dd.MM – E, dd.MM},
253             d => q{E, dd.MM – E, dd.MM},
254             },
255             MMMEd => {
256             M => q{E, d MMM – E, d MMM},
257             d => q{E, d – E, d MMM},
258             },
259             MMMd => {
260             M => q{d MMM – d MMM},
261             d => q{d–d MMM},
262             },
263             Md => {
264             M => q{dd.MM – dd.MM},
265             d => q{dd.MM – dd.MM},
266             },
267             yM => {
268             M => q{MM.y – MM.y G},
269             y => q{MM.y – MM.y G},
270             },
271             yMEd => {
272             M => q{E, dd.MM.y – E, dd.MM.y G},
273             d => q{E, dd.MM.y – E, dd.MM.y G},
274             y => q{E, dd.MM.y – E, dd.MM.y G},
275             },
276             yMMMEd => {
277             M => q{E, d MMM – E, d MMM y G},
278             d => q{E, d – E, d MMM y G},
279             y => q{E, d MMM y – E, d MMM y G},
280             },
281             yMMMd => {
282             M => q{d MMM – d MMM y G},
283             d => q{d–d MMM y G},
284             y => q{d MMM y – d MMM y G},
285             },
286             yMd => {
287             M => q{dd.MM.y – dd.MM.y G},
288             d => q{dd.MM.y – dd.MM.y G},
289             y => q{dd.MM.y – dd.MM.y G},
290             },
291             },
292             'gregorian' => {
293             MEd => {
294             M => q{E, dd.MM – E, dd.MM},
295             d => q{E, dd.MM – E, dd.MM},
296             },
297             MMMEd => {
298             M => q{E, d MMM – E, d MMM},
299             d => q{E, d – E, d MMM},
300             },
301             MMMd => {
302             M => q{d MMM – d MMM},
303             d => q{d–d MMM},
304             },
305             Md => {
306             M => q{dd.MM – dd.MM},
307             d => q{dd.MM – dd.MM},
308             },
309             yM => {
310             M => q{MM.y – MM.y},
311             y => q{MM.y – MM.y},
312             },
313             yMEd => {
314             M => q{E, dd.MM.y – E, dd.MM.y},
315             d => q{E, dd.MM.y – E, dd.MM.y},
316             y => q{E, dd.MM.y – E, dd.MM.y},
317             },
318             yMMMEd => {
319             M => q{E, d MMM – E, d MMM y},
320             d => q{E, d – E, d MMM y},
321             y => q{E, d MMM y – E, d MMM y},
322             },
323             yMMMd => {
324             M => q{d MMM – d MMM y},
325             d => q{d–d MMM y},
326             y => q{d MMM y – d MMM y},
327             },
328             yMd => {
329             M => q{dd.MM.y – dd.MM.y},
330             d => q{dd.MM.y – dd.MM.y},
331             y => q{dd.MM.y – dd.MM.y},
332             },
333             },
334             } },
335             );
336              
337 1     1   1268 no Moo;
  1         2  
  1         12  
338              
339             1;
340              
341             # vim: tabstop=4