De/Latn/Li.pm

filter: Statementstmt 58.1% 50 / 86 Branchbran 2.9% 1 / 34 Conditioncond 0.0% 0 / 38 MC/DCmcdc 0.0% 0 / 25 Subroutinesub 40.7% 11 / 27 Podpod n/a totaltotal 29.5% 62 / 210 CC 31 SCAR 62.9
CC
31
Cov
32%
__ANON__
992.0
__ANON__
2.0
__ANON__
2.0
CRAP 540.2
« De/Latn/Lu.pm ↑ Summary De/Latn/At.pm »
1 =encoding utf8
2
3 =head1 NAME
4
5 Locale::CLDR::Locales::De::Latn::Li - Package for language German
6
7 =cut
8
9 package Locale::CLDR::Locales::De::Latn::Li;
10 # This file auto generated from Data\common\main\de_LI.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::De::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 has 'number_symbols' => (
47 is => 'ro',
48 isa => HashRef,
49 init_arg => undef,
50 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
51 0 'latn' => {
52 'decimal' => q(.),
53 'group' => q(’),
54 },
55 } }
56 1 );
57
58 has 'number_formats' => (
59 is => 'ro',
60 isa => HashRef,
61 init_arg => undef,
62 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
63 0 percentFormat => {
64 'default' => {
65 'standard' => {
66 'default' => '#,##0%',
67 },
68 },
69 },
70 } },
71 1 );
72
73 has 'number_currency_formats' => (
74 is => 'ro',
75 isa => HashRef,
76 init_arg => undef,
77 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
78 0 'latn' => {
79 'pattern' => {
80 'default' => {
81 'standard' => {
82 'positive' => '¤ #,##0.00',
83 },
84 },
85 },
86 },
87 } },
88 1 );
89
90 has 'currencies' => (
91 is => 'ro',
92 isa => HashRef,
93 init_arg => undef,
94 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
95 0 'EUR' => {
96 symbol => 'EUR',
97 },
98 } },
99 1 );
100
101
102 has 'day_period_data' => (
103 is => 'ro',
104 isa => CodeRef,
105 init_arg => undef,
106 0 ▶ default => sub { sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
Subroutine __ANON__: not called CC=31 SCAR=69.0
107 # Time in hhmm format
108 0 my ($self, $type, $time, $day_period_type) = @_;
109 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
110 SWITCH:
111 0 for ($type) {
112 0 ▶ if ($_ eq 'gregorian') {
Branch: 1 branch
BranchTrueFalseTotal
if ($_ eq "gregorian") 0 0 0
113 0 ▶ if($day_period_type eq 'default') {
Branch: 1 branch
BranchTrueFalseTotal
if ($day_period_type eq "default") 0 0 0
114 0 ▶ return 'midnight' if $time == 0;
Branch: 1 branch
BranchTrueFalseTotal
if $time == 0 0 0 0
115 0 ▶ return 'afternoon1' if $time >= 1200
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 1200 and $time < 1300 0 0 0
Condition0%0/3
$time >= 1200 and $time < 1300
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 1200 and $time < 1300
$time >= 1200 $time < 1300
Truth table0%0/3
A and B
A= $time >= 1200B= $time < 1300
ABresult
0X0
100
111
116 && $time < 1300;
117 0 ▶ return 'afternoon2' if $time >= 1300
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 1300 and $time < 1800 0 0 0
Condition0%0/3
$time >= 1300 and $time < 1800
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 1300 and $time < 1800
$time >= 1300 $time < 1800
Truth table0%0/3
A and B
A= $time >= 1300B= $time < 1800
ABresult
0X0
100
111
118 && $time < 1800;
119 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
120 && $time < 2400;
121 0 ▶ return 'morning1' if $time >= 500
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 500 and $time < 1000 0 0 0
Condition0%0/3
$time >= 500 and $time < 1000
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 500 and $time < 1000
$time >= 500 $time < 1000
Truth table0%0/3
A and B
A= $time >= 500B= $time < 1000
ABresult
0X0
100
111
122 && $time < 1000;
123 0 ▶ return 'morning2' if $time >= 1000
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 1000 and $time < 1200 0 0 0
Condition0%0/3
$time >= 1000 and $time < 1200
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 1000 and $time < 1200
$time >= 1000 $time < 1200
Truth table0%0/3
A and B
A= $time >= 1000B= $time < 1200
ABresult
0X0
100
111
124 && $time < 1200;
125 0 ▶ return 'night1' if $time >= 0
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 0 and $time < 500 0 0 0
Condition0%0/3
$time >= 0 and $time < 500
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 0 and $time < 500
$time >= 0 $time < 500
Truth table0%0/3
A and B
A= $time >= 0B= $time < 500
ABresult
0X0
100
111
126 && $time < 500;
127 }
128 0 ▶ if($day_period_type eq 'selection') {
Branch: 1 branch
BranchTrueFalseTotal
if ($day_period_type eq "selection") 0 0 0
129 0 ▶ return 'afternoon1' if $time >= 1200
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 1200 and $time < 1300 0 0 0
Condition0%0/3
$time >= 1200 and $time < 1300
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 1200 and $time < 1300
$time >= 1200 $time < 1300
Truth table0%0/3
A and B
A= $time >= 1200B= $time < 1300
ABresult
0X0
100
111
130 && $time < 1300;
131 0 ▶ return 'afternoon2' if $time >= 1300
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 1300 and $time < 1800 0 0 0
Condition0%0/3
$time >= 1300 and $time < 1800
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 1300 and $time < 1800
$time >= 1300 $time < 1800
Truth table0%0/3
A and B
A= $time >= 1300B= $time < 1800
ABresult
0X0
100
111
132 && $time < 1800;
133 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
134 && $time < 2400;
135 0 ▶ return 'morning1' if $time >= 500
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 500 and $time < 1000 0 0 0
Condition0%0/3
$time >= 500 and $time < 1000
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 500 and $time < 1000
$time >= 500 $time < 1000
Truth table0%0/3
A and B
A= $time >= 500B= $time < 1000
ABresult
0X0
100
111
136 && $time < 1000;
137 0 ▶ return 'morning2' if $time >= 1000
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 1000 and $time < 1200 0 0 0
Condition0%0/3
$time >= 1000 and $time < 1200
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 1000 and $time < 1200
$time >= 1000 $time < 1200
Truth table0%0/3
A and B
A= $time >= 1000B= $time < 1200
ABresult
0X0
100
111
138 && $time < 1200;
139 0 ▶ return 'night1' if $time >= 0
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 0 and $time < 500 0 0 0
Condition0%0/3
$time >= 0 and $time < 500
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 0 and $time < 500
$time >= 0 $time < 500
Truth table0%0/3
A and B
A= $time >= 0B= $time < 500
ABresult
0X0
100
111
140 && $time < 500;
141 }
142 0 last SWITCH;
143 }
144 }
145 0 } },
146 1 );
147
148 0 ▶around day_period_data => sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
149 0 my ($orig, $self) = @_;
150 0 return $self->$orig;
151 1 };
152
153 has 'day_periods' => (
154 is => 'ro',
155 isa => HashRef,
156 init_arg => undef,
157 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
158 0 'gregorian' => {
159 'stand-alone' => {
160 'narrow' => {
161 'am' => q{vm.},
162 'pm' => q{nm.},
163 },
164 },
165 },
166 } },
167 1 );
168
169 has 'eras' => (
170 is => 'ro',
171 isa => HashRef,
172 init_arg => undef,
173 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
174 0 'gregorian' => {
175 },
176 } },
177 1 );
178
179 has 'date_formats' => (
180 is => 'ro',
181 isa => HashRef,
182 init_arg => undef,
183 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
184 0 'gregorian' => {
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 'gregorian' => {
195 },
196 } },
197 1 );
198
199 has 'datetime_formats' => (
200 is => 'ro',
201 isa => HashRef,
202 init_arg => undef,
203 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
204 0 'gregorian' => {
205 },
206 } },
207 1 );
208
209 has 'datetime_formats_available_formats' => (
210 is => 'ro',
211 isa => HashRef,
212 init_arg => undef,
213 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
214 0 } },
215 1 );
216
217 has 'datetime_formats_append_item' => (
218 is => 'ro',
219 isa => HashRef,
220 init_arg => undef,
221 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
222 0 } },
223 1 );
224
225 has 'datetime_formats_interval' => (
226 is => 'ro',
227 isa => HashRef,
228 init_arg => undef,
229 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
230 0 } },
231 1 );
232
233 1 ▶no Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
234
235 1 1;
236
237 # vim: tabstop=4
« De/Latn/Lu.pm ↑ Summary De/Latn/At.pm »