En/Latn/Za.pm

filter: Statementstmt 49.4% 49 / 99 Branchbran 1.6% 1 / 62 Conditioncond 0.0% 0 / 38 MC/DCmcdc 0.0% 0 / 25 Subroutinesub 42.3% 11 / 26 Podpod n/a totaltotal 24.4% 61 / 250 CC 45 SCAR 71.9
CC
45
Cov
25%
__ANON__
2070.0
__ANON__
2.0
__ANON__
2.0
CRAP 1331.3
« En/Latn/Se.pm ↑ Summary En/Latn/Dg.pm »
1 =encoding utf8
2
3 =head1 NAME
4
5 Locale::CLDR::Locales::En::Latn::Za - Package for language English
6
7 =cut
8
9 package Locale::CLDR::Locales::En::Latn::Za;
10 # This file auto generated from Data\common\main\en_ZA.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::001');
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 auxiliary => qr{[áàăâåäā æ ç ḓ éèĕêëē íìĭîïī ḽ ñṅṋ óòŏôöøō œ š ṱ úùŭûüū ÿ]},
37 numbers => qr{[  \- ‑ , % ‰ + 0 1 2 3 4 5 6 7 8 9]},
38 };
39 },
40 EOT
41 0 ▶: sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
42 0 return {};
43 },
44 1 ▶);
Subroutine BEGIN: called CC=1 SCAR=0.0
Branch: 1 branch
BranchTrueFalseTotal
$^V ge v5.18.0 ? : 1 0 1
45
46
47 has 'number_symbols' => (
48 is => 'ro',
49 isa => HashRef,
50 init_arg => undef,
51 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
52 0 'latn' => {
53 'decimal' => q(,),
54 'group' => q( ),
55 },
56 } }
57 1 );
58
59 has 'number_currency_formats' => (
60 is => 'ro',
61 isa => HashRef,
62 init_arg => undef,
63 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
64 0 'latn' => {
65 'pattern' => {
66 'default' => {
67 'standard' => {
68 'positive' => '¤#,##0.00',
69 },
70 },
71 },
72 },
73 } },
74 1 );
75
76 has 'currencies' => (
77 is => 'ro',
78 isa => HashRef,
79 init_arg => undef,
80 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
81 0 'ZAR' => {
82 symbol => 'R',
83 },
84 } },
85 1 );
86
87
88 has 'day_period_data' => (
89 is => 'ro',
90 isa => CodeRef,
91 init_arg => undef,
92 0 ▶ default => sub { sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
Subroutine __ANON__: not called CC=45 SCAR=76.4
93 # Time in hhmm format
94 0 my ($self, $type, $time, $day_period_type) = @_;
95 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
96 SWITCH:
97 0 for ($type) {
98 0 ▶ if ($_ eq 'generic') {
Branch: 1 branch
BranchTrueFalseTotal
if ($_ eq "generic") 0 0 0
99 0 ▶ if($day_period_type eq 'default') {
Branch: 1 branch
BranchTrueFalseTotal
if ($day_period_type eq "default") 0 0 0
100 0 ▶ return 'midnight' if $time == 0;
Branch: 1 branch
BranchTrueFalseTotal
if $time == 0 0 0 0
101 0 ▶ return 'noon' if $time == 1200;
Branch: 1 branch
BranchTrueFalseTotal
if $time == 1200 0 0 0
102 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
103 && $time < 1800;
104 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
105 && $time < 2100;
106 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
107 && $time < 1200;
108 0 ▶ return 'night1' if $time >= 2100;
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 2100 0 0 0
109 0 ▶ return 'night1' if $time < 600;
Branch: 1 branch
BranchTrueFalseTotal
if $time < 600 0 0 0
110 }
111 0 ▶ if($day_period_type eq 'selection') {
Branch: 1 branch
BranchTrueFalseTotal
if ($day_period_type eq "selection") 0 0 0
112 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
113 && $time < 1800;
114 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
115 && $time < 2100;
116 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
117 && $time < 1200;
118 0 ▶ return 'night1' if $time >= 2100;
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 2100 0 0 0
119 0 ▶ return 'night1' if $time < 600;
Branch: 1 branch
BranchTrueFalseTotal
if $time < 600 0 0 0
120 }
121 0 last SWITCH;
122 }
123 0 ▶ if ($_ eq 'gregorian') {
Branch: 1 branch
BranchTrueFalseTotal
if ($_ eq "gregorian") 0 0 0
124 0 ▶ if($day_period_type eq 'default') {
Branch: 1 branch
BranchTrueFalseTotal
if ($day_period_type eq "default") 0 0 0
125 0 ▶ return 'midnight' if $time == 0;
Branch: 1 branch
BranchTrueFalseTotal
if $time == 0 0 0 0
126 0 ▶ return 'noon' if $time == 1200;
Branch: 1 branch
BranchTrueFalseTotal
if $time == 1200 0 0 0
127 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
128 && $time < 1800;
129 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
130 && $time < 2100;
131 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
132 && $time < 1200;
133 0 ▶ return 'night1' if $time >= 2100;
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 2100 0 0 0
134 0 ▶ return 'night1' if $time < 600;
Branch: 1 branch
BranchTrueFalseTotal
if $time < 600 0 0 0
135 }
136 0 ▶ if($day_period_type eq 'selection') {
Branch: 1 branch
BranchTrueFalseTotal
if ($day_period_type eq "selection") 0 0 0
137 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
138 && $time < 1800;
139 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
140 && $time < 2100;
141 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
142 && $time < 1200;
143 0 ▶ return 'night1' if $time >= 2100;
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 2100 0 0 0
144 0 ▶ return 'night1' if $time < 600;
Branch: 1 branch
BranchTrueFalseTotal
if $time < 600 0 0 0
145 }
146 0 last SWITCH;
147 }
148 }
149 0 } },
150 1 );
151
152 0 ▶around day_period_data => sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
153 0 my ($orig, $self) = @_;
154 0 return $self->$orig;
155 1 };
156
157 has 'eras' => (
158 is => 'ro',
159 isa => HashRef,
160 init_arg => undef,
161 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
162 0 'generic' => {
163 },
164 'gregorian' => {
165 },
166 } },
167 1 );
168
169 has 'date_formats' => (
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 'generic' => {
175 'full' => q{EEEE, dd MMMM y G},
176 'long' => q{dd MMMM y G},
177 'medium' => q{dd MMM y G},
178 'short' => q{GGGGG y/MM/dd},
179 },
180 'gregorian' => {
181 'full' => q{EEEE, dd MMMM y},
182 'long' => q{dd MMMM y},
183 'medium' => q{dd MMM y},
184 'short' => q{y/MM/dd},
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 'full' => q{HH:mm:ss zzzz},
198 'long' => q{HH:mm:ss z},
199 'medium' => q{HH:mm:ss},
200 'short' => q{HH:mm},
201 },
202 } },
203 1 );
204
205 has 'datetime_formats' => (
206 is => 'ro',
207 isa => HashRef,
208 init_arg => undef,
209 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
210 0 'generic' => {
211 },
212 'gregorian' => {
213 },
214 } },
215 1 );
216
217 has 'datetime_formats_available_formats' => (
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 'generic' => {
223 MEd => q{E, MM/dd},
224 MMMEd => q{E, dd MMM},
225 MMMd => q{dd MMM},
226 Md => q{MM/dd},
227 yyyyMEd => q{E, G y/MM/dd},
228 yyyyMMMEd => q{E, dd MMM y G},
229 yyyyMMMd => q{dd MMM y G},
230 yyyyMd => q{G y/MM/dd},
231 },
232 'gregorian' => {
233 MEd => q{E, MM/dd},
234 MMMEd => q{E, dd MMM},
235 MMMd => q{dd MMM},
236 Md => q{MM/dd},
237 yMEd => q{E, y/MM/dd},
238 yMMMEd => q{E, dd MMM y},
239 yMMMd => q{dd MMM y},
240 yMd => q{y/MM/dd},
241 },
242 } },
243 1 );
244
245 has 'datetime_formats_append_item' => (
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 } },
251 1 );
252
253 has 'datetime_formats_interval' => (
254 is => 'ro',
255 isa => HashRef,
256 init_arg => undef,
257 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
258 0 'generic' => {
259 MEd => {
260 M => q{E MM/dd – E MM/dd},
261 d => q{E MM/dd – E MM/dd},
262 },
263 MMMEd => {
264 M => q{E dd MMM – E dd MMM},
265 d => q{E dd – E dd MMM},
266 },
267 MMMd => {
268 M => q{dd MMM – dd MMM},
269 d => q{dd – dd MMM},
270 },
271 Md => {
272 M => q{MM/dd – MM/dd},
273 d => q{MM/dd – MM/dd},
274 },
275 y => {
276 y => q{G y – y},
277 },
278 yM => {
279 M => q{G y/MM – y/MM},
280 y => q{G y/MM – y/MM},
281 },
282 yMEd => {
283 M => q{E y/MM/dd – E y/MM/dd},
284 d => q{E y/MM/dd – E y/MM/dd},
285 y => q{E y/MM/dd – E y/MM/dd},
286 },
287 yMMMEd => {
288 M => q{E, dd MMM – E, dd MMM y G},
289 d => q{E, dd – E, dd MMM y G},
290 y => q{E, dd MMM y – E, dd MMM y G},
291 },
292 yMMMd => {
293 M => q{dd MMM – dd MMM y G},
294 d => q{dd – dd MMM y G},
295 y => q{dd MMM y – dd MMM y G},
296 },
297 yMd => {
298 M => q{G y/MM/dd – y/MM/dd},
299 d => q{G y/MM/dd – y/MM/dd},
300 y => q{G y/MM/dd – y/MM/dd},
301 },
302 },
303 'gregorian' => {
304 MEd => {
305 M => q{E MM/dd – E MM/dd},
306 d => q{E MM/dd – E MM/dd},
307 },
308 MMMEd => {
309 M => q{E dd MMM – E dd MMM},
310 d => q{E dd – E dd MMM},
311 },
312 MMMd => {
313 M => q{dd MMM – dd MMM},
314 d => q{dd – dd MMM},
315 },
316 Md => {
317 M => q{MM/dd – MM/dd},
318 d => q{MM/dd – MM/dd},
319 },
320 yM => {
321 M => q{y/MM – y/MM},
322 y => q{y/MM – y/MM},
323 },
324 yMEd => {
325 M => q{E y/MM/dd – E y/MM/dd},
326 d => q{E y/MM/dd – E y/MM/dd},
327 y => q{E y/MM/dd – E y/MM/dd},
328 },
329 yMMMEd => {
330 M => q{E, dd MMM – E, dd MMM y},
331 d => q{E, dd – E, dd MMM y},
332 y => q{E, dd MMM y – E, dd MMM y},
333 },
334 yMMMd => {
335 M => q{dd MMM – dd MMM y},
336 d => q{dd – dd MMM y},
337 y => q{dd MMM y – dd MMM y},
338 },
339 yMd => {
340 M => q{y/MM/dd – y/MM/dd},
341 d => q{y/MM/dd – y/MM/dd},
342 y => q{y/MM/dd – y/MM/dd},
343 },
344 },
345 } },
346 1 );
347
348 has 'time_zone_names' => (
349 is => 'ro',
350 isa => HashRef,
351 init_arg => undef,
352 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
353 0 'Africa_Central' => {
354 short => {
355 'standard' => q#CAT#,
356 },
357 },
358 'Africa_Eastern' => {
359 short => {
360 'standard' => q#EAT#,
361 },
362 },
363 'Africa_Southern' => {
364 short => {
365 'standard' => q#SAST#,
366 },
367 },
368 'Africa_Western' => {
369 short => {
370 'daylight' => q#WAST#,
371 'generic' => q#WAT#,
372 'standard' => q#WAT#,
373 },
374 },
375 } }
376 1 );
377 1 ▶no Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
378
379 1 1;
380
381 # vim: tabstop=4
« En/Latn/Se.pm ↑ Summary En/Latn/Dg.pm »