Sv/Latn/Fi.pm

filter: Statementstmt 55.2% 47 / 85 Branchbran 0.0% 0 / 30 Conditioncond 0.0% 0 / 32 MC/DCmcdc 0.0% 0 / 21 Subroutinesub 37.0% 10 / 27 Podpod n/a totaltotal 29.2% 57 / 195 CC 28 SCAR 59.4
CC
28
Cov
32%
__ANON__
756.0
__ANON__
6.0
__ANON__
2.0
CRAP 379.0
« Sv.pm ↑ Summary Sv/Latn.pm »
1 =encoding utf8
2
3 =head1 NAME
4
5 Locale::CLDR::Locales::Sv::Latn::Fi - Package for language Swedish
6
7 =cut
8
9 package Locale::CLDR::Locales::Sv::Latn::Fi;
10 # This file auto generated from Data\common\main\sv_FI.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::Sv::Latn');
27 has 'display_name_script' => (
28 is => 'ro',
29 isa => CodeRef,
30 init_arg => undef,
31 0 ▶ default => sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
32 0 ▶ sub {
Subroutine __ANON__: not called CC=2 SCAR=17.9
33 0 my %scripts = (
34 'Arab@alt=variant' => 'persisk-arabiska',
35
36 );
37 0 ▶ if ( @_ ) {
Branch: 1 branch
BranchTrueFalseTotal
if (@_) 0 0 0
38 0 return $scripts{$_[0]};
39 }
40 0 return \%scripts;
41 }
42 0 }
43 1 );
44
45 has 'display_name_key' => (
46 is => 'ro',
47 isa => HashRef[Str],
48 init_arg => undef,
49 0 ▶ default => sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
50 {
51 0 'timezone' => 'tidszon',
52
53 }
54 },
55 1 );
56
57 has 'display_name_type' => (
58 is => 'ro',
59 isa => HashRef[HashRef[Str]],
60 init_arg => undef,
61 0 ▶ default => sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
62 {
63 0 'collation' => {
64 'big5han' => q{kinesiska i big5-sorteringsordning},
65 'gb2312han' => q{kinesiska i gb2312-sorteringsordning},
66 'pinyin' => q{kinesiska i pinyin-sorteringsordning},
67 'stroke' => q{kinesiska i strecksorteringsordning},
68 },
69
70 }
71 },
72 1 );
73
74 has 'units' => (
75 is => 'ro',
76 isa => HashRef[HashRef[HashRef[Str]]],
77 init_arg => undef,
78 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
79 0 'narrow' => {
80 # Long Unit Identifier
81 'speed-kilometer-per-hour' => {
82 'one' => q({0} km/h),
83 'other' => q({0} km/h),
84 },
85 # Core Unit Identifier
86 'kilometer-per-hour' => {
87 'one' => q({0} km/h),
88 'other' => q({0} km/h),
89 },
90 },
91 } }
92 1 );
93
94 has 'number_symbols' => (
95 is => 'ro',
96 isa => HashRef,
97 init_arg => undef,
98 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
99 0 'latn' => {
100 'timeSeparator' => q(.),
101 },
102 } }
103 1 );
104
105 has 'calendar_quarters' => (
106 is => 'ro',
107 isa => HashRef,
108 init_arg => undef,
109 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
110 0 'gregorian' => {
111 'format' => {
112 abbreviated => {0 => 'Q1',
113 1 => 'Q2',
114 2 => 'Q3',
115 3 => 'Q4'
116 },
117 },
118 },
119 } },
120 1 );
121
122 has 'day_period_data' => (
123 is => 'ro',
124 isa => CodeRef,
125 init_arg => undef,
126 0 ▶ default => sub { sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
Subroutine __ANON__: not called CC=27 SCAR=66.3
127 # Time in hhmm format
128 0 my ($self, $type, $time, $day_period_type) = @_;
129 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
130 SWITCH:
131 0 for ($type) {
132 0 ▶ if ($_ eq 'gregorian') {
Branch: 1 branch
BranchTrueFalseTotal
if ($_ eq "gregorian") 0 0 0
133 0 ▶ if($day_period_type eq 'default') {
Branch: 1 branch
BranchTrueFalseTotal
if ($day_period_type eq "default") 0 0 0
134 0 ▶ return 'midnight' if $time == 0;
Branch: 1 branch
BranchTrueFalseTotal
if $time == 0 0 0 0
135 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
136 && $time < 1800;
137 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
138 && $time < 2400;
139 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
140 && $time < 1000;
141 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
142 && $time < 1200;
143 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
144 && $time < 500;
145 }
146 0 ▶ if($day_period_type eq 'selection') {
Branch: 1 branch
BranchTrueFalseTotal
if ($day_period_type eq "selection") 0 0 0
147 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
148 && $time < 1800;
149 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
150 && $time < 2400;
151 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
152 && $time < 1000;
153 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
154 && $time < 1200;
155 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
156 && $time < 500;
157 }
158 0 last SWITCH;
159 }
160 }
161 0 } },
162 1 );
163
164 0 ▶around day_period_data => sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
165 0 my ($orig, $self) = @_;
166 0 return $self->$orig;
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 'gregorian' => {
215 Bhm => q{h.mm B},
216 Bhms => q{h.mm.ss B},
217 EBhm => q{E h.mm B},
218 EBhms => q{E h.mm.ss B},
219 EHm => q{E HH.mm},
220 EHms => q{E HH.mm.ss},
221 Ehm => q{E h.mm a},
222 Ehms => q{E h.mm.ss a},
223 Hm => q{HH.mm},
224 Hms => q{HH.mm.ss},
225 Hmsv => q{HH.mm.ss v},
226 Hmv => q{HH.mm v},
227 MEd => q{E d.M},
228 MMd => q{d.M},
229 MMdd => q{dd.MM},
230 Md => q{d.M},
231 hm => q{h.mm a},
232 hms => q{h.mm.ss a},
233 hmsv => q{h.mm.ss a v},
234 hmv => q{h.mm a v},
235 ms => q{mm.ss},
236 },
237 } },
238 1 );
239
240 has 'datetime_formats_append_item' => (
241 is => 'ro',
242 isa => HashRef,
243 init_arg => undef,
244 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
245 0 } },
246 1 );
247
248 has 'datetime_formats_interval' => (
249 is => 'ro',
250 isa => HashRef,
251 init_arg => undef,
252 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
253 0 } },
254 1 );
255
256 1 ▶no Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
257
258 1 1;
259
260 # vim: tabstop=4
« Sv.pm ↑ Summary Sv/Latn.pm »