It/Latn/Ch.pm

filter: Statementstmt 52.6% 49 / 93 Branchbran 1.8% 1 / 54 Conditioncond 0.0% 0 / 50 MC/DCmcdc 0.0% 0 / 33 Subroutinesub 45.8% 11 / 24 Podpod n/a totaltotal 24.0% 61 / 254 CC 45 SCAR 72.2
CC
45
Cov
25%
__ANON__
2070.0
__ANON__
2.0
__ANON__
2.0
CRAP 1370.4
« It.pm ↑ Summary It/Latn.pm »
1 =encoding utf8
2
3 =head1 NAME
4
5 Locale::CLDR::Locales::It::Latn::Ch - Package for language Italian
6
7 =cut
8
9 package Locale::CLDR::Locales::It::Latn::Ch;
10 # This file auto generated from Data\common\main\it_CH.xml
11 # on Fri 17 Jan 12:03:31 pm GMT
12
13 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
14 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
15 1 ▶use version;
Subroutine BEGIN: called CC=1 SCAR=0.0
16
17 1 our $VERSION = version->declare('v0.46.0');
18
19 1 ▶use v5.12.0;
Subroutine BEGIN: called CC=1 SCAR=0.0
20 1 ▶use mro 'c3';
Subroutine BEGIN: called CC=1 SCAR=0.0
21 1 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
22 1 ▶use feature 'unicode_strings';
Subroutine BEGIN: called CC=1 SCAR=0.0
23 1 ▶use Types::Standard qw( Str Int HashRef ArrayRef CodeRef RegexpRef );
Subroutine BEGIN: called CC=1 SCAR=0.0
24 1 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
25
26 1 extends('Locale::CLDR::Locales::It::Latn');
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 0 ▶: sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
41 0 return {};
42 },
43 1 ▶);
Subroutine BEGIN: called CC=1 SCAR=0.0
Branch: 1 branch
BranchTrueFalseTotal
$^V ge v5.18.0 ? : 1 0 1
44
45
46 1 has 'alternate_quote_start' => (
47 is => 'ro',
48 isa => Str,
49 init_arg => undef,
50 default => qq{‹},
51 );
52
53 1 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 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
65 0 'latn' => {
66 'decimal' => q(.),
67 'group' => q(’),
68 },
69 } }
70 1 );
71
72 has 'number_currency_formats' => (
73 is => 'ro',
74 isa => HashRef,
75 init_arg => undef,
76 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
77 0 'latn' => {
78 'pattern' => {
79 'default' => {
80 'standard' => {
81 'negative' => '¤-#,##0.00',
82 'positive' => '¤ #,##0.00',
83 },
84 },
85 },
86 },
87 } },
88 1 );
89
90 has 'day_period_data' => (
91 is => 'ro',
92 isa => CodeRef,
93 init_arg => undef,
94 0 ▶ default => sub { sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
Subroutine __ANON__: not called CC=45 SCAR=76.4
95 # Time in hhmm format
96 0 my ($self, $type, $time, $day_period_type) = @_;
97 0 ▶ $day_period_type //= 'default';
Condition0%0/2
$day_period_type //= "default"
l!l
00
MC/DC0%0/1
$day_period_type //= "default"
$day_period_type
Truth table0%0/2
A
A= $day_period_type
Aresult
11
00
98 SWITCH:
99 0 for ($type) {
100 0 ▶ if ($_ eq 'generic') {
Branch: 1 branch
BranchTrueFalseTotal
if ($_ eq "generic") 0 0 0
101 0 ▶ if($day_period_type eq 'default') {
Branch: 1 branch
BranchTrueFalseTotal
if ($day_period_type eq "default") 0 0 0
102 0 ▶ return 'midnight' if $time == 0;
Branch: 1 branch
BranchTrueFalseTotal
if $time == 0 0 0 0
103 0 ▶ return 'noon' if $time == 1200;
Branch: 1 branch
BranchTrueFalseTotal
if $time == 1200 0 0 0
104 0 ▶ return 'afternoon1' if $time >= 1200
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 1200 and $time < 1800 0 0 0
Condition0%0/3
$time >= 1200 and $time < 1800
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 1200 and $time < 1800
$time >= 1200 $time < 1800
Truth table0%0/3
A and B
A= $time >= 1200B= $time < 1800
ABresult
0X0
100
111
105 && $time < 1800;
106 0 ▶ return 'evening1' if $time >= 1800
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 1800 and $time < 2400 0 0 0
Condition0%0/3
$time >= 1800 and $time < 2400
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 1800 and $time < 2400
$time >= 1800 $time < 2400
Truth table0%0/3
A and B
A= $time >= 1800B= $time < 2400
ABresult
0X0
100
111
107 && $time < 2400;
108 0 ▶ return 'morning1' if $time >= 600
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 600 and $time < 1200 0 0 0
Condition0%0/3
$time >= 600 and $time < 1200
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 600 and $time < 1200
$time >= 600 $time < 1200
Truth table0%0/3
A and B
A= $time >= 600B= $time < 1200
ABresult
0X0
100
111
109 && $time < 1200;
110 0 ▶ return 'night1' if $time >= 0
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 0 and $time < 600 0 0 0
Condition0%0/3
$time >= 0 and $time < 600
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 0 and $time < 600
$time >= 0 $time < 600
Truth table0%0/3
A and B
A= $time >= 0B= $time < 600
ABresult
0X0
100
111
111 && $time < 600;
112 }
113 0 ▶ if($day_period_type eq 'selection') {
Branch: 1 branch
BranchTrueFalseTotal
if ($day_period_type eq "selection") 0 0 0
114 0 ▶ return 'afternoon1' if $time >= 1200
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 1200 and $time < 1800 0 0 0
Condition0%0/3
$time >= 1200 and $time < 1800
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 1200 and $time < 1800
$time >= 1200 $time < 1800
Truth table0%0/3
A and B
A= $time >= 1200B= $time < 1800
ABresult
0X0
100
111
115 && $time < 1800;
116 0 ▶ return 'evening1' if $time >= 1800
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 1800 and $time < 2400 0 0 0
Condition0%0/3
$time >= 1800 and $time < 2400
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 1800 and $time < 2400
$time >= 1800 $time < 2400
Truth table0%0/3
A and B
A= $time >= 1800B= $time < 2400
ABresult
0X0
100
111
117 && $time < 2400;
118 0 ▶ return 'morning1' if $time >= 600
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 600 and $time < 1200 0 0 0
Condition0%0/3
$time >= 600 and $time < 1200
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 600 and $time < 1200
$time >= 600 $time < 1200
Truth table0%0/3
A and B
A= $time >= 600B= $time < 1200
ABresult
0X0
100
111
119 && $time < 1200;
120 0 ▶ return 'night1' if $time >= 0
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 0 and $time < 600 0 0 0
Condition0%0/3
$time >= 0 and $time < 600
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 0 and $time < 600
$time >= 0 $time < 600
Truth table0%0/3
A and B
A= $time >= 0B= $time < 600
ABresult
0X0
100
111
121 && $time < 600;
122 }
123 0 last SWITCH;
124 }
125 0 ▶ if ($_ eq 'gregorian') {
Branch: 1 branch
BranchTrueFalseTotal
if ($_ eq "gregorian") 0 0 0
126 0 ▶ if($day_period_type eq 'default') {
Branch: 1 branch
BranchTrueFalseTotal
if ($day_period_type eq "default") 0 0 0
127 0 ▶ return 'midnight' if $time == 0;
Branch: 1 branch
BranchTrueFalseTotal
if $time == 0 0 0 0
128 0 ▶ return 'noon' if $time == 1200;
Branch: 1 branch
BranchTrueFalseTotal
if $time == 1200 0 0 0
129 0 ▶ return 'afternoon1' if $time >= 1200
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 1200 and $time < 1800 0 0 0
Condition0%0/3
$time >= 1200 and $time < 1800
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 1200 and $time < 1800
$time >= 1200 $time < 1800
Truth table0%0/3
A and B
A= $time >= 1200B= $time < 1800
ABresult
0X0
100
111
130 && $time < 1800;
131 0 ▶ return 'evening1' if $time >= 1800
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 1800 and $time < 2400 0 0 0
Condition0%0/3
$time >= 1800 and $time < 2400
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 1800 and $time < 2400
$time >= 1800 $time < 2400
Truth table0%0/3
A and B
A= $time >= 1800B= $time < 2400
ABresult
0X0
100
111
132 && $time < 2400;
133 0 ▶ return 'morning1' if $time >= 600
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 600 and $time < 1200 0 0 0
Condition0%0/3
$time >= 600 and $time < 1200
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 600 and $time < 1200
$time >= 600 $time < 1200
Truth table0%0/3
A and B
A= $time >= 600B= $time < 1200
ABresult
0X0
100
111
134 && $time < 1200;
135 0 ▶ return 'night1' if $time >= 0
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 0 and $time < 600 0 0 0
Condition0%0/3
$time >= 0 and $time < 600
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 0 and $time < 600
$time >= 0 $time < 600
Truth table0%0/3
A and B
A= $time >= 0B= $time < 600
ABresult
0X0
100
111
136 && $time < 600;
137 }
138 0 ▶ if($day_period_type eq 'selection') {
Branch: 1 branch
BranchTrueFalseTotal
if ($day_period_type eq "selection") 0 0 0
139 0 ▶ return 'afternoon1' if $time >= 1200
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 1200 and $time < 1800 0 0 0
Condition0%0/3
$time >= 1200 and $time < 1800
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 1200 and $time < 1800
$time >= 1200 $time < 1800
Truth table0%0/3
A and B
A= $time >= 1200B= $time < 1800
ABresult
0X0
100
111
140 && $time < 1800;
141 0 ▶ return 'evening1' if $time >= 1800
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 1800 and $time < 2400 0 0 0
Condition0%0/3
$time >= 1800 and $time < 2400
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 1800 and $time < 2400
$time >= 1800 $time < 2400
Truth table0%0/3
A and B
A= $time >= 1800B= $time < 2400
ABresult
0X0
100
111
142 && $time < 2400;
143 0 ▶ return 'morning1' if $time >= 600
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 600 and $time < 1200 0 0 0
Condition0%0/3
$time >= 600 and $time < 1200
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 600 and $time < 1200
$time >= 600 $time < 1200
Truth table0%0/3
A and B
A= $time >= 600B= $time < 1200
ABresult
0X0
100
111
144 && $time < 1200;
145 0 ▶ return 'night1' if $time >= 0
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 0 and $time < 600 0 0 0
Condition0%0/3
$time >= 0 and $time < 600
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 0 and $time < 600
$time >= 0 $time < 600
Truth table0%0/3
A and B
A= $time >= 0B= $time < 600
ABresult
0X0
100
111
146 && $time < 600;
147 }
148 0 last SWITCH;
149 }
150 }
151 0 } },
152 1 );
153
154 0 ▶around day_period_data => sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
155 0 my ($orig, $self) = @_;
156 0 return $self->$orig;
157 1 };
158
159 has 'eras' => (
160 is => 'ro',
161 isa => HashRef,
162 init_arg => undef,
163 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
164 0 'generic' => {
165 },
166 'gregorian' => {
167 },
168 } },
169 1 );
170
171 has 'date_formats' => (
172 is => 'ro',
173 isa => HashRef,
174 init_arg => undef,
175 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
176 0 '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 1 );
188
189 has 'time_formats' => (
190 is => 'ro',
191 isa => HashRef,
192 init_arg => undef,
193 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
194 0 'generic' => {
195 },
196 'gregorian' => {
197 },
198 } },
199 1 );
200
201 has 'datetime_formats' => (
202 is => 'ro',
203 isa => HashRef,
204 init_arg => undef,
205 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
206 0 'generic' => {
207 },
208 'gregorian' => {
209 },
210 } },
211 1 );
212
213 has 'datetime_formats_available_formats' => (
214 is => 'ro',
215 isa => HashRef,
216 init_arg => undef,
217 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
218 0 '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 1 );
236
237 has 'datetime_formats_append_item' => (
238 is => 'ro',
239 isa => HashRef,
240 init_arg => undef,
241 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
242 0 } },
243 1 );
244
245 has 'datetime_formats_interval' => (
246 is => 'ro',
247 isa => HashRef,
248 init_arg => undef,
249 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
250 0 '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 1 );
336
337 1 ▶no Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
338
339 1 1;
340
341 # vim: tabstop=4
« It.pm ↑ Summary It/Latn.pm »