Es/Latn/Pr.pm

filter: Statementstmt 48.9% 46 / 94 Branchbran 0.0% 0 / 50 Conditioncond 0.0% 0 / 50 MC/DCmcdc 0.0% 0 / 33 Subroutinesub 38.4% 10 / 26 Podpod n/a totaltotal 22.1% 56 / 253 CC 44 SCAR 70.7
CC
44
Cov
24%
__ANON__
1892.0
__ANON__
6.0
__ANON__
2.0
CRAP 1179.8
« Es/Latn/Pa.pm ↑ Summary Es/Latn/Do.pm »
1 =encoding utf8
2
3 =head1 NAME
4
5 Locale::CLDR::Locales::Es::Latn::Pr - Package for language Spanish
6
7 =cut
8
9 package Locale::CLDR::Locales::Es::Latn::Pr;
10 # This file auto generated from Data\common\main\es_PR.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::Es::Latn::419');
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 'ace' => 'acehnés',
35 'arp' => 'arapaho',
36 'bho' => 'bhojpuri',
37 'grc' => 'griego antiguo',
38 'nso' => 'sotho septentrional',
39 'ss' => 'siswati',
40 'wo' => 'wolof',
41
42 );
43 0 ▶ if (@_) {
Branch: 1 branch
BranchTrueFalseTotal
if (@_) 0 0 0
44 0 return $languages{$_[0]};
45 }
46 0 return \%languages;
47 }
48 0 },
49 1 );
50
51 has 'display_name_region' => (
52 is => 'ro',
53 isa => HashRef[Str],
54 init_arg => undef,
55 0 ▶ default => sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
56 {
57 0 'UM' => 'Islas menores alejadas de EE. UU.',
58
59 }
60 },
61 1 );
62
63 has 'units' => (
64 is => 'ro',
65 isa => HashRef[HashRef[HashRef[Str]]],
66 init_arg => undef,
67 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
68 0 'narrow' => {
69 # Long Unit Identifier
70 'temperature-fahrenheit' => {
71 'one' => q({0}°),
72 'other' => q({0}°),
73 },
74 # Core Unit Identifier
75 'fahrenheit' => {
76 'one' => q({0}°),
77 'other' => q({0}°),
78 },
79 },
80 } }
81 1 );
82
83 has 'currencies' => (
84 is => 'ro',
85 isa => HashRef,
86 init_arg => undef,
87 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
88 0 'USD' => {
89 symbol => '$',
90 },
91 } },
92 1 );
93
94
95 has 'day_period_data' => (
96 is => 'ro',
97 isa => CodeRef,
98 init_arg => undef,
99 0 ▶ default => sub { sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
Subroutine __ANON__: not called CC=43 SCAR=75.5
100 # Time in hhmm format
101 0 my ($self, $type, $time, $day_period_type) = @_;
102 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
103 SWITCH:
104 0 for ($type) {
105 0 ▶ if ($_ eq 'generic') {
Branch: 1 branch
BranchTrueFalseTotal
if ($_ eq "generic") 0 0 0
106 0 ▶ if($day_period_type eq 'default') {
Branch: 1 branch
BranchTrueFalseTotal
if ($day_period_type eq "default") 0 0 0
107 0 ▶ return 'noon' if $time == 1200;
Branch: 1 branch
BranchTrueFalseTotal
if $time == 1200 0 0 0
108 0 ▶ return 'evening1' if $time >= 1200
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 1200 and $time < 2000 0 0 0
Condition0%0/3
$time >= 1200 and $time < 2000
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 1200 and $time < 2000
$time >= 1200 $time < 2000
Truth table0%0/3
A and B
A= $time >= 1200B= $time < 2000
ABresult
0X0
100
111
109 && $time < 2000;
110 0 ▶ return 'morning1' if $time >= 0
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 0 and $time < 600 0 0 0
Condition0%0/3
$time >= 0 and $time < 600
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 0 and $time < 600
$time >= 0 $time < 600
Truth table0%0/3
A and B
A= $time >= 0B= $time < 600
ABresult
0X0
100
111
111 && $time < 600;
112 0 ▶ return 'morning2' 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
113 && $time < 1200;
114 0 ▶ return 'night1' if $time >= 2000
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 2000 and $time < 2400 0 0 0
Condition0%0/3
$time >= 2000 and $time < 2400
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 2000 and $time < 2400
$time >= 2000 $time < 2400
Truth table0%0/3
A and B
A= $time >= 2000B= $time < 2400
ABresult
0X0
100
111
115 && $time < 2400;
116 }
117 0 ▶ if($day_period_type eq 'selection') {
Branch: 1 branch
BranchTrueFalseTotal
if ($day_period_type eq "selection") 0 0 0
118 0 ▶ return 'evening1' if $time >= 1200
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 1200 and $time < 2000 0 0 0
Condition0%0/3
$time >= 1200 and $time < 2000
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 1200 and $time < 2000
$time >= 1200 $time < 2000
Truth table0%0/3
A and B
A= $time >= 1200B= $time < 2000
ABresult
0X0
100
111
119 && $time < 2000;
120 0 ▶ return 'morning1' if $time >= 0
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 0 and $time < 600 0 0 0
Condition0%0/3
$time >= 0 and $time < 600
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 0 and $time < 600
$time >= 0 $time < 600
Truth table0%0/3
A and B
A= $time >= 0B= $time < 600
ABresult
0X0
100
111
121 && $time < 600;
122 0 ▶ return 'morning2' 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
123 && $time < 1200;
124 0 ▶ return 'night1' if $time >= 2000
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 2000 and $time < 2400 0 0 0
Condition0%0/3
$time >= 2000 and $time < 2400
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 2000 and $time < 2400
$time >= 2000 $time < 2400
Truth table0%0/3
A and B
A= $time >= 2000B= $time < 2400
ABresult
0X0
100
111
125 && $time < 2400;
126 }
127 0 last SWITCH;
128 }
129 0 ▶ if ($_ eq 'gregorian') {
Branch: 1 branch
BranchTrueFalseTotal
if ($_ eq "gregorian") 0 0 0
130 0 ▶ if($day_period_type eq 'default') {
Branch: 1 branch
BranchTrueFalseTotal
if ($day_period_type eq "default") 0 0 0
131 0 ▶ return 'noon' if $time == 1200;
Branch: 1 branch
BranchTrueFalseTotal
if $time == 1200 0 0 0
132 0 ▶ return 'evening1' if $time >= 1200
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 1200 and $time < 2000 0 0 0
Condition0%0/3
$time >= 1200 and $time < 2000
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 1200 and $time < 2000
$time >= 1200 $time < 2000
Truth table0%0/3
A and B
A= $time >= 1200B= $time < 2000
ABresult
0X0
100
111
133 && $time < 2000;
134 0 ▶ return 'morning1' if $time >= 0
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 0 and $time < 600 0 0 0
Condition0%0/3
$time >= 0 and $time < 600
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 0 and $time < 600
$time >= 0 $time < 600
Truth table0%0/3
A and B
A= $time >= 0B= $time < 600
ABresult
0X0
100
111
135 && $time < 600;
136 0 ▶ return 'morning2' 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
137 && $time < 1200;
138 0 ▶ return 'night1' if $time >= 2000
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 2000 and $time < 2400 0 0 0
Condition0%0/3
$time >= 2000 and $time < 2400
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 2000 and $time < 2400
$time >= 2000 $time < 2400
Truth table0%0/3
A and B
A= $time >= 2000B= $time < 2400
ABresult
0X0
100
111
139 && $time < 2400;
140 }
141 0 ▶ if($day_period_type eq 'selection') {
Branch: 1 branch
BranchTrueFalseTotal
if ($day_period_type eq "selection") 0 0 0
142 0 ▶ return 'evening1' if $time >= 1200
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 1200 and $time < 2000 0 0 0
Condition0%0/3
$time >= 1200 and $time < 2000
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 1200 and $time < 2000
$time >= 1200 $time < 2000
Truth table0%0/3
A and B
A= $time >= 1200B= $time < 2000
ABresult
0X0
100
111
143 && $time < 2000;
144 0 ▶ return 'morning1' if $time >= 0
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 0 and $time < 600 0 0 0
Condition0%0/3
$time >= 0 and $time < 600
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 0 and $time < 600
$time >= 0 $time < 600
Truth table0%0/3
A and B
A= $time >= 0B= $time < 600
ABresult
0X0
100
111
145 && $time < 600;
146 0 ▶ return 'morning2' 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
147 && $time < 1200;
148 0 ▶ return 'night1' if $time >= 2000
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 2000 and $time < 2400 0 0 0
Condition0%0/3
$time >= 2000 and $time < 2400
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 2000 and $time < 2400
$time >= 2000 $time < 2400
Truth table0%0/3
A and B
A= $time >= 2000B= $time < 2400
ABresult
0X0
100
111
149 && $time < 2400;
150 }
151 0 last SWITCH;
152 }
153 }
154 0 } },
155 1 );
156
157 0 ▶around day_period_data => sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
158 0 my ($orig, $self) = @_;
159 0 return $self->$orig;
160 1 };
161
162 has 'day_periods' => (
163 is => 'ro',
164 isa => HashRef,
165 init_arg => undef,
166 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
167 0 'gregorian' => {
168 'format' => {
169 'abbreviated' => {
170 'am' => q{a. m.},
171 'pm' => q{p. m.},
172 },
173 'wide' => {
174 'am' => q{a. m.},
175 'pm' => q{p. m.},
176 },
177 },
178 'stand-alone' => {
179 'abbreviated' => {
180 'am' => q{a. m.},
181 'pm' => q{p. m.},
182 },
183 'narrow' => {
184 'am' => q{a. m.},
185 'pm' => q{p. m.},
186 },
187 'wide' => {
188 'am' => q{a. m.},
189 'pm' => q{p. m.},
190 },
191 },
192 },
193 } },
194 1 );
195
196 has 'eras' => (
197 is => 'ro',
198 isa => HashRef,
199 init_arg => undef,
200 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
201 0 'generic' => {
202 },
203 'gregorian' => {
204 },
205 } },
206 1 );
207
208 has 'date_formats' => (
209 is => 'ro',
210 isa => HashRef,
211 init_arg => undef,
212 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
213 0 'generic' => {
214 'medium' => q{MM/dd/y G},
215 'short' => q{MM/dd/yy GGGGG},
216 },
217 'gregorian' => {
218 'medium' => q{MM/dd/y},
219 'short' => q{MM/dd/yy},
220 },
221 } },
222 1 );
223
224 has 'time_formats' => (
225 is => 'ro',
226 isa => HashRef,
227 init_arg => undef,
228 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
229 0 'generic' => {
230 },
231 'gregorian' => {
232 },
233 } },
234 1 );
235
236 has 'datetime_formats' => (
237 is => 'ro',
238 isa => HashRef,
239 init_arg => undef,
240 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
241 0 'generic' => {
242 },
243 'gregorian' => {
244 },
245 } },
246 1 );
247
248 has 'datetime_formats_available_formats' => (
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 MEd => q{E, MM/dd},
255 Md => q{MM/dd},
256 yyyyM => q{MM/y G},
257 yyyyMEd => q{E MM/dd/y G},
258 yyyyMd => q{MM/dd/y G},
259 },
260 'gregorian' => {
261 MEd => q{E, MM/dd},
262 Md => q{MM/dd},
263 yM => q{MM/y},
264 yMEd => q{E MM/dd/y},
265 yMd => q{MM/dd/y},
266 },
267 } },
268 1 );
269
270 has 'datetime_formats_append_item' => (
271 is => 'ro',
272 isa => HashRef,
273 init_arg => undef,
274 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
275 0 } },
276 1 );
277
278 has 'datetime_formats_interval' => (
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 Hm => {
285 H => q{HH:mm–HH:mm},
286 m => q{HH:mm–HH:mm},
287 },
288 Hmv => {
289 H => q{HH:mm–HH:mm v},
290 m => q{HH:mm–HH:mm v},
291 },
292 MEd => {
293 M => q{E MM/dd – E MM/dd},
294 d => q{E MM/dd – E MM/dd},
295 },
296 MMMEd => {
297 M => q{E d 'de' MMM 'al' E d 'de' MMM},
298 d => q{E d 'al' E d 'de' MMM},
299 },
300 MMMd => {
301 M => q{d 'de' MMM 'al' d 'de' MMM},
302 },
303 Md => {
304 M => q{MM/dd – MM/dd},
305 d => q{MM/dd – MM/dd},
306 },
307 fallback => '{0} a el {1}',
308 hm => {
309 h => q{h:mm–h:mm a},
310 m => q{h:mm–h:mm a},
311 },
312 hmv => {
313 h => q{h:mm–h:mm a v},
314 m => q{h:mm–h:mm a v},
315 },
316 yM => {
317 M => q{MM/y – MM/y G},
318 y => q{MM/y – MM/y G},
319 },
320 yMEd => {
321 M => q{E MM/dd/y – E MM/dd/y G},
322 d => q{E MM/dd/y – E MM/dd/y G},
323 y => q{E MM/dd/y – E MM/dd/y G},
324 },
325 yMMM => {
326 y => q{MMM 'de' y 'a' MMM 'de' y G},
327 },
328 yMMMEd => {
329 M => q{E d 'de' MMM 'al' E d 'de' MMM 'de' y G},
330 d => q{E d 'al' E d 'de' MMM 'de' y G},
331 y => q{E d 'de' MMM 'de' y 'al' E d 'de' MMM 'de' y G},
332 },
333 yMMMd => {
334 M => q{d 'de' MMM 'al' d 'de' MMM 'de' y G},
335 y => q{d 'de' MMM 'de' y 'al' d 'de' MMM 'de' y G},
336 },
337 yMd => {
338 M => q{MM/dd/y – MM/dd/y G},
339 d => q{MM/dd/y – MM/dd/y G},
340 y => q{MM/dd/y – MM/dd/y G},
341 },
342 },
343 'gregorian' => {
344 Hm => {
345 H => q{HH:mm–HH:mm},
346 m => q{HH:mm–HH:mm},
347 },
348 Hmv => {
349 H => q{HH:mm–HH:mm v},
350 m => q{HH:mm–HH:mm v},
351 },
352 Hv => {
353 H => q{HH–HH v},
354 },
355 MEd => {
356 M => q{E MM/dd – E MM/dd},
357 d => q{E MM/dd – E MM/dd},
358 },
359 MMMEd => {
360 M => q{E d 'de' MMM 'al' E d 'de' MMM},
361 d => q{E d 'al' E d 'de' MMM},
362 },
363 MMMd => {
364 M => q{d 'de' MMM 'al' d 'de' MMM},
365 },
366 Md => {
367 M => q{MM/dd – MM/dd},
368 d => q{MM/dd – MM/dd},
369 },
370 fallback => '{0} a el {1}',
371 hm => {
372 h => q{h:mm–h:mm a},
373 m => q{h:mm–h:mm a},
374 },
375 yM => {
376 M => q{MM/y – MM/y},
377 y => q{MM/y – MM/y},
378 },
379 yMEd => {
380 M => q{E MM/dd/y – E MM/dd/y},
381 d => q{E MM/dd/y – E MM/dd/y},
382 y => q{E MM/dd/y – E MM/dd/y},
383 },
384 yMMM => {
385 y => q{MMM 'de' y 'a' MMM 'de' y},
386 },
387 yMMMEd => {
388 M => q{E d 'de' MMM 'al' E d 'de' MMM 'de' y},
389 d => q{E d 'al' E d 'de' MMM 'de' y},
390 y => q{E d 'de' MMM 'de' y 'al' E d 'de' MMM 'de' y},
391 },
392 yMMMd => {
393 M => q{d 'de' MMM 'al' d 'de' MMM 'de' y},
394 y => q{d 'de' MMM 'de' y 'al' d 'de' MMM 'de' y},
395 },
396 yMd => {
397 M => q{MM/dd/y – MM/dd/y},
398 d => q{MM/dd/y – MM/dd/y},
399 y => q{MM/dd/y – MM/dd/y},
400 },
401 },
402 } },
403 1 );
404
405 1 ▶no Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
406
407 1 1;
408
409 # vim: tabstop=4
« Es/Latn/Pa.pm ↑ Summary Es/Latn/Do.pm »