Sw/Latn/Cd.pm

filter: Statementstmt 55.0% 49 / 89 Branchbran 2.6% 1 / 38 Conditioncond 0.0% 0 / 26 MC/DCmcdc 0.0% 0 / 17 Subroutinesub 40.7% 11 / 27 Podpod n/a totaltotal 30.9% 61 / 197 CC 29 SCAR 60.3
CC
29
Cov
33%
__ANON__
812.0
__ANON__
6.0
__ANON__
2.0
CRAP 414.3
« Sw.pm ↑ Summary Sw/Latn/Ug.pm »
1 =encoding utf8
2
3 =head1 NAME
4
5 Locale::CLDR::Locales::Sw::Latn::Cd - Package for language Swahili
6
7 =cut
8
9 package Locale::CLDR::Locales::Sw::Latn::Cd;
10 # This file auto generated from Data\common\main\sw_CD.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::Sw::Latn');
27 has 'display_name_language' => (
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 %languages = (
34 'ak' => 'Kiakan',
35 'ar_001' => 'Kiarabu cha Dunia Kilichosanifishwa',
36 'arq' => 'Kiarabu cha Aljeria',
37 'az' => 'Kiazabajani',
38 'gv' => 'Kimanksi',
39 'gwi' => 'Kigwichiin',
40 'hup' => 'Kihupa',
41 'jbo' => 'Kilojban',
42 'kac' => 'Kikachin',
43 'kkj' => 'Kikako',
44 'koi' => 'Kikomipermyak',
45 'kru' => 'Kikurukh',
46 'kum' => 'Kikumyk',
47 'ky' => 'Kikirigizi',
48 'lam' => 'Kilamba',
49 'li' => 'Kilimburgi',
50 'mdf' => 'Kimoksha',
51 'mic' => 'Kimikmaki',
52 'mk' => 'Kimasedonia',
53 'moh' => 'Kimohoki',
54 'mos' => 'Kimossi',
55 'nnh' => 'Kingiemboon',
56 'nqo' => 'Kiinko',
57 'pcm' => 'Pijini ya Nijeria',
58 'quc' => 'Kikiiche',
59 'shu' => 'Kiarabu cha Chadi',
60 'srn' => 'Kitongo cha Sranan',
61 'swb' => 'Kikomoro',
62 'syr' => 'Kisiria',
63 'udm' => 'Kiudumurti',
64 'yi' => 'Kiyidi',
65
66 );
67 0 ▶ if (@_) {
Branch: 1 branch
BranchTrueFalseTotal
if (@_) 0 0 0
68 0 return $languages{$_[0]};
69 }
70 0 return \%languages;
71 }
72 0 },
73 1 );
74
75 has 'display_name_region' => (
76 is => 'ro',
77 isa => HashRef[Str],
78 init_arg => undef,
79 0 ▶ default => sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
80 {
81 0 '030' => 'Asia Mashariki',
82 'AF' => 'Afuganistani',
83 'AZ' => 'Azabajani',
84 'BJ' => 'Benini',
85 'CI' => 'Kodivaa',
86 'CX' => 'Kisiwa cha Christmas',
87 'HR' => 'Kroeshia',
88 'JO' => 'Yordani',
89 'LB' => 'Lebanoni',
90 'LI' => 'Lishenteni',
91 'LU' => 'Lasembagi',
92 'LV' => 'Lativia',
93 'MA' => 'Moroko',
94 'MM' => 'Myama',
95 'NE' => 'Nijeri',
96 'NG' => 'Nijeria',
97 'NO' => 'Norwe',
98 'NP' => 'Nepali',
99 'OM' => 'Omani',
100 'PR' => 'Puetoriko',
101 'QA' => 'Katari',
102 'SD' => 'Sudani',
103 'ST' => 'Sao Tome na Prinsipe',
104 'TD' => 'Chadi',
105 'TL' => 'Timori ya Mashariki',
106
107 }
108 },
109 1 );
110
111 has 'characters' => (
112 is => 'ro',
113 isa => HashRef,
114 init_arg => undef,
115 default => $^V ge v5.18.0
116 ? eval <<'EOT'
117 sub {
118 no warnings 'experimental::regex_sets';
119 return {
120 auxiliary => qr{[q x]},
121 main => qr{[a b c d e f g h i j k l m n o p r s t u v w y z]},
122 };
123 },
124 EOT
125 0 ▶: sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
126 0 return {};
127 },
128 1 ▶);
Subroutine BEGIN: called CC=1 SCAR=0.0
Branch: 1 branch
BranchTrueFalseTotal
$^V ge v5.18.0 ? : 1 0 1
129
130
131 has 'number_symbols' => (
132 is => 'ro',
133 isa => HashRef,
134 init_arg => undef,
135 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
136 0 'latn' => {
137 'decimal' => q(,),
138 'group' => q(.),
139 },
140 } }
141 1 );
142
143 has 'currencies' => (
144 is => 'ro',
145 isa => HashRef,
146 init_arg => undef,
147 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
148 0 'CDF' => {
149 symbol => 'FC',
150 },
151 'CNY' => {
152 display_name => {
153 'currency' => q(Yuan Renminbi ya China),
154 },
155 },
156 'ETB' => {
157 display_name => {
158 'currency' => q(Bir ya Uhabeshi),
159 },
160 },
161 'JPY' => {
162 display_name => {
163 'currency' => q(Sarafu ya Kijapani),
164 },
165 },
166 'MGA' => {
167 display_name => {
168 'currency' => q(Ariary ya Bukini),
169 },
170 },
171 'MRO' => {
172 display_name => {
173 'currency' => q(Ugwiya ya Moritania \(1973–2017\)),
174 },
175 },
176 'MRU' => {
177 display_name => {
178 'currency' => q(Ugwiya ya Moritania),
179 },
180 },
181 'SCR' => {
182 display_name => {
183 'currency' => q(Rupia ya Shelisheli),
184 },
185 },
186 'XAF' => {
187 display_name => {
188 'currency' => q(Faranga CFA BEAC),
189 },
190 },
191 'XOF' => {
192 display_name => {
193 'currency' => q(Faranga CFA BCEAO),
194 },
195 },
196 } },
197 1 );
198
199
200 has 'day_period_data' => (
201 is => 'ro',
202 isa => CodeRef,
203 init_arg => undef,
204 0 ▶ default => sub { sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
Subroutine __ANON__: not called CC=28 SCAR=67.0
205 # Time in hhmm format
206 0 my ($self, $type, $time, $day_period_type) = @_;
207 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
208 SWITCH:
209 0 for ($type) {
210 0 ▶ if ($_ eq 'generic') {
Branch: 1 branch
BranchTrueFalseTotal
if ($_ eq "generic") 0 0 0
211 0 ▶ if($day_period_type eq 'default') {
Branch: 1 branch
BranchTrueFalseTotal
if ($day_period_type eq "default") 0 0 0
212 0 ▶ return 'midnight' if $time == 0;
Branch: 1 branch
BranchTrueFalseTotal
if $time == 0 0 0 0
213 0 ▶ return 'noon' if $time == 1200;
Branch: 1 branch
BranchTrueFalseTotal
if $time == 1200 0 0 0
214 0 ▶ return 'afternoon1' if $time >= 1200
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 1200 and $time < 1600 0 0 0
Condition0%0/3
$time >= 1200 and $time < 1600
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 1200 and $time < 1600
$time >= 1200 $time < 1600
Truth table0%0/3
A and B
A= $time >= 1200B= $time < 1600
ABresult
0X0
100
111
215 && $time < 1600;
216 0 ▶ return 'evening1' if $time >= 1600
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 1600 and $time < 1900 0 0 0
Condition0%0/3
$time >= 1600 and $time < 1900
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 1600 and $time < 1900
$time >= 1600 $time < 1900
Truth table0%0/3
A and B
A= $time >= 1600B= $time < 1900
ABresult
0X0
100
111
217 && $time < 1900;
218 0 ▶ return 'morning1' if $time >= 400
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 400 and $time < 700 0 0 0
Condition0%0/3
$time >= 400 and $time < 700
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 400 and $time < 700
$time >= 400 $time < 700
Truth table0%0/3
A and B
A= $time >= 400B= $time < 700
ABresult
0X0
100
111
219 && $time < 700;
220 0 ▶ return 'morning2' if $time >= 700
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 700 and $time < 1200 0 0 0
Condition0%0/3
$time >= 700 and $time < 1200
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 700 and $time < 1200
$time >= 700 $time < 1200
Truth table0%0/3
A and B
A= $time >= 700B= $time < 1200
ABresult
0X0
100
111
221 && $time < 1200;
222 0 ▶ return 'night1' if $time >= 1900;
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 1900 0 0 0
223 0 ▶ return 'night1' if $time < 400;
Branch: 1 branch
BranchTrueFalseTotal
if $time < 400 0 0 0
224 }
225 0 ▶ if($day_period_type eq 'selection') {
Branch: 1 branch
BranchTrueFalseTotal
if ($day_period_type eq "selection") 0 0 0
226 0 ▶ return 'afternoon1' if $time >= 1200
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 1200 and $time < 1600 0 0 0
Condition0%0/3
$time >= 1200 and $time < 1600
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 1200 and $time < 1600
$time >= 1200 $time < 1600
Truth table0%0/3
A and B
A= $time >= 1200B= $time < 1600
ABresult
0X0
100
111
227 && $time < 1600;
228 0 ▶ return 'evening1' if $time >= 1600
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 1600 and $time < 1900 0 0 0
Condition0%0/3
$time >= 1600 and $time < 1900
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 1600 and $time < 1900
$time >= 1600 $time < 1900
Truth table0%0/3
A and B
A= $time >= 1600B= $time < 1900
ABresult
0X0
100
111
229 && $time < 1900;
230 0 ▶ return 'morning1' if $time >= 400
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 400 and $time < 700 0 0 0
Condition0%0/3
$time >= 400 and $time < 700
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 400 and $time < 700
$time >= 400 $time < 700
Truth table0%0/3
A and B
A= $time >= 400B= $time < 700
ABresult
0X0
100
111
231 && $time < 700;
232 0 ▶ return 'morning2' if $time >= 700
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 700 and $time < 1200 0 0 0
Condition0%0/3
$time >= 700 and $time < 1200
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 700 and $time < 1200
$time >= 700 $time < 1200
Truth table0%0/3
A and B
A= $time >= 700B= $time < 1200
ABresult
0X0
100
111
233 && $time < 1200;
234 0 ▶ return 'night1' if $time >= 1900;
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 1900 0 0 0
235 0 ▶ return 'night1' if $time < 400;
Branch: 1 branch
BranchTrueFalseTotal
if $time < 400 0 0 0
236 }
237 0 last SWITCH;
238 }
239 }
240 0 } },
241 1 );
242
243 0 ▶around day_period_data => sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
244 0 my ($orig, $self) = @_;
245 0 return $self->$orig;
246 1 };
247
248 has 'eras' => (
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 'generic' => {
254 },
255 } },
256 1 );
257
258 has 'date_formats' => (
259 is => 'ro',
260 isa => HashRef,
261 init_arg => undef,
262 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
263 0 'generic' => {
264 },
265 } },
266 1 );
267
268 has 'time_formats' => (
269 is => 'ro',
270 isa => HashRef,
271 init_arg => undef,
272 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
273 0 'generic' => {
274 },
275 } },
276 1 );
277
278 has 'datetime_formats' => (
279 is => 'ro',
280 isa => HashRef,
281 init_arg => undef,
282 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
283 0 'generic' => {
284 },
285 } },
286 1 );
287
288 has 'datetime_formats_available_formats' => (
289 is => 'ro',
290 isa => HashRef,
291 init_arg => undef,
292 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
293 0 'generic' => {
294 MMMEd => q{E d MMM},
295 ms => q{m:ss},
296 },
297 } },
298 1 );
299
300 has 'datetime_formats_append_item' => (
301 is => 'ro',
302 isa => HashRef,
303 init_arg => undef,
304 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
305 0 } },
306 1 );
307
308 has 'datetime_formats_interval' => (
309 is => 'ro',
310 isa => HashRef,
311 init_arg => undef,
312 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
313 0 } },
314 1 );
315
316 1 ▶no Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
317
318 1 1;
319
320 # vim: tabstop=4
« Sw.pm ↑ Summary Sw/Latn/Ug.pm »