En/Latn/Dk.pm

filter: Statementstmt 47.8% 44 / 92 Branchbran 0.0% 0 / 60 Conditioncond 0.0% 0 / 38 MC/DCmcdc 0.0% 0 / 25 Subroutinesub 43.4% 10 / 23 Podpod n/a totaltotal 22.6% 54 / 238 CC 45 SCAR 72.4
CC
45
Cov
23%
__ANON__
2070.0
__ANON__
2.0
__ANON__
2.0
CRAP 1390.8
« En/Latn/Nz.pm ↑ Summary En/Latn/Id.pm »
1 =encoding utf8
2
3 =head1 NAME
4
5 Locale::CLDR::Locales::En::Latn::Dk - Package for language English
6
7 =cut
8
9 package Locale::CLDR::Locales::En::Latn::Dk;
10 # This file auto generated from Data\common\main\en_DK.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::En::Latn::150');
27 has 'number_symbols' => (
28 is => 'ro',
29 isa => HashRef,
30 init_arg => undef,
31 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
32 0 'latn' => {
33 'decimal' => q(,),
34 'group' => q(.),
35 'superscriptingExponent' => q(·),
36 'timeSeparator' => q(.),
37 },
38 } }
39 1 );
40
41 has 'number_formats' => (
42 is => 'ro',
43 isa => HashRef,
44 init_arg => undef,
45 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
46 0 percentFormat => {
47 'default' => {
48 'standard' => {
49 'default' => '#,##0 %',
50 },
51 },
52 },
53 } },
54 1 );
55
56 has 'currencies' => (
57 is => 'ro',
58 isa => HashRef,
59 init_arg => undef,
60 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
61 0 'DKK' => {
62 symbol => 'kr.',
63 },
64 } },
65 1 );
66
67
68 has 'day_period_data' => (
69 is => 'ro',
70 isa => CodeRef,
71 init_arg => undef,
72 0 ▶ default => sub { sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
Subroutine __ANON__: not called CC=45 SCAR=76.4
73 # Time in hhmm format
74 0 my ($self, $type, $time, $day_period_type) = @_;
75 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
76 SWITCH:
77 0 for ($type) {
78 0 ▶ if ($_ eq 'generic') {
Branch: 1 branch
BranchTrueFalseTotal
if ($_ eq "generic") 0 0 0
79 0 ▶ if($day_period_type eq 'default') {
Branch: 1 branch
BranchTrueFalseTotal
if ($day_period_type eq "default") 0 0 0
80 0 ▶ return 'midnight' if $time == 0;
Branch: 1 branch
BranchTrueFalseTotal
if $time == 0 0 0 0
81 0 ▶ return 'noon' if $time == 1200;
Branch: 1 branch
BranchTrueFalseTotal
if $time == 1200 0 0 0
82 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
83 && $time < 1800;
84 0 ▶ return 'evening1' if $time >= 1800
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 1800 and $time < 2100 0 0 0
Condition0%0/3
$time >= 1800 and $time < 2100
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 1800 and $time < 2100
$time >= 1800 $time < 2100
Truth table0%0/3
A and B
A= $time >= 1800B= $time < 2100
ABresult
0X0
100
111
85 && $time < 2100;
86 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
87 && $time < 1200;
88 0 ▶ return 'night1' if $time >= 2100;
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 2100 0 0 0
89 0 ▶ return 'night1' if $time < 600;
Branch: 1 branch
BranchTrueFalseTotal
if $time < 600 0 0 0
90 }
91 0 ▶ if($day_period_type eq 'selection') {
Branch: 1 branch
BranchTrueFalseTotal
if ($day_period_type eq "selection") 0 0 0
92 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
93 && $time < 1800;
94 0 ▶ return 'evening1' if $time >= 1800
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 1800 and $time < 2100 0 0 0
Condition0%0/3
$time >= 1800 and $time < 2100
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 1800 and $time < 2100
$time >= 1800 $time < 2100
Truth table0%0/3
A and B
A= $time >= 1800B= $time < 2100
ABresult
0X0
100
111
95 && $time < 2100;
96 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
97 && $time < 1200;
98 0 ▶ return 'night1' if $time >= 2100;
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 2100 0 0 0
99 0 ▶ return 'night1' if $time < 600;
Branch: 1 branch
BranchTrueFalseTotal
if $time < 600 0 0 0
100 }
101 0 last SWITCH;
102 }
103 0 ▶ if ($_ eq 'gregorian') {
Branch: 1 branch
BranchTrueFalseTotal
if ($_ eq "gregorian") 0 0 0
104 0 ▶ if($day_period_type eq 'default') {
Branch: 1 branch
BranchTrueFalseTotal
if ($day_period_type eq "default") 0 0 0
105 0 ▶ return 'midnight' if $time == 0;
Branch: 1 branch
BranchTrueFalseTotal
if $time == 0 0 0 0
106 0 ▶ return 'noon' if $time == 1200;
Branch: 1 branch
BranchTrueFalseTotal
if $time == 1200 0 0 0
107 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
108 && $time < 1800;
109 0 ▶ return 'evening1' if $time >= 1800
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 1800 and $time < 2100 0 0 0
Condition0%0/3
$time >= 1800 and $time < 2100
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 1800 and $time < 2100
$time >= 1800 $time < 2100
Truth table0%0/3
A and B
A= $time >= 1800B= $time < 2100
ABresult
0X0
100
111
110 && $time < 2100;
111 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
112 && $time < 1200;
113 0 ▶ return 'night1' if $time >= 2100;
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 2100 0 0 0
114 0 ▶ return 'night1' if $time < 600;
Branch: 1 branch
BranchTrueFalseTotal
if $time < 600 0 0 0
115 }
116 0 ▶ if($day_period_type eq 'selection') {
Branch: 1 branch
BranchTrueFalseTotal
if ($day_period_type eq "selection") 0 0 0
117 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
118 && $time < 1800;
119 0 ▶ return 'evening1' if $time >= 1800
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 1800 and $time < 2100 0 0 0
Condition0%0/3
$time >= 1800 and $time < 2100
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 1800 and $time < 2100
$time >= 1800 $time < 2100
Truth table0%0/3
A and B
A= $time >= 1800B= $time < 2100
ABresult
0X0
100
111
120 && $time < 2100;
121 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
122 && $time < 1200;
123 0 ▶ return 'night1' if $time >= 2100;
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 2100 0 0 0
124 0 ▶ return 'night1' if $time < 600;
Branch: 1 branch
BranchTrueFalseTotal
if $time < 600 0 0 0
125 }
126 0 last SWITCH;
127 }
128 }
129 0 } },
130 1 );
131
132 0 ▶around day_period_data => sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
133 0 my ($orig, $self) = @_;
134 0 return $self->$orig;
135 1 };
136
137 has 'eras' => (
138 is => 'ro',
139 isa => HashRef,
140 init_arg => undef,
141 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
142 0 'generic' => {
143 },
144 'gregorian' => {
145 },
146 } },
147 1 );
148
149 has 'date_formats' => (
150 is => 'ro',
151 isa => HashRef,
152 init_arg => undef,
153 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
154 0 'generic' => {
155 },
156 'gregorian' => {
157 },
158 } },
159 1 );
160
161 has 'time_formats' => (
162 is => 'ro',
163 isa => HashRef,
164 init_arg => undef,
165 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
166 0 'generic' => {
167 },
168 'gregorian' => {
169 'full' => q{HH.mm.ss zzzz},
170 'long' => q{HH.mm.ss z},
171 'medium' => q{HH.mm.ss},
172 'short' => q{HH.mm},
173 },
174 } },
175 1 );
176
177 has 'datetime_formats' => (
178 is => 'ro',
179 isa => HashRef,
180 init_arg => undef,
181 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
182 0 'generic' => {
183 },
184 'gregorian' => {
185 },
186 } },
187 1 );
188
189 has 'datetime_formats_available_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 EHm => q{E HH.mm},
196 EHms => q{E HH.mm.ss},
197 Ehm => q{E h.mm a},
198 Ehms => q{E h.mm.ss a},
199 Hm => q{HH.mm},
200 Hms => q{HH.mm.ss},
201 Hmsv => q{HH.mm.ss v},
202 Hmv => q{HH.mm v},
203 hm => q{h.mm a},
204 hms => q{h.mm.ss a},
205 hmsv => q{h.mm.ss a v},
206 hmv => q{h.mm a v},
207 ms => q{mm.ss},
208 },
209 'gregorian' => {
210 EHm => q{E HH.mm},
211 EHms => q{E HH.mm.ss},
212 Ehm => q{E h.mm a},
213 Ehms => q{E h.mm.ss a},
214 Hm => q{HH.mm},
215 Hms => q{HH.mm.ss},
216 Hmsv => q{HH.mm.ss v},
217 Hmv => q{HH.mm v},
218 hm => q{h.mm a},
219 hms => q{h.mm.ss a},
220 hmsv => q{h.mm.ss a v},
221 hmv => q{h.mm a v},
222 ms => q{mm.ss},
223 },
224 } },
225 1 );
226
227 has 'datetime_formats_append_item' => (
228 is => 'ro',
229 isa => HashRef,
230 init_arg => undef,
231 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
232 0 } },
233 1 );
234
235 has 'datetime_formats_interval' => (
236 is => 'ro',
237 isa => HashRef,
238 init_arg => undef,
239 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
240 0 } },
241 1 );
242
243 1 ▶no Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
244
245 1 1;
246
247 # vim: tabstop=4
« En/Latn/Nz.pm ↑ Summary En/Latn/Id.pm »