Ro/Latn/Md.pm

filter: Statementstmt 54.5% 48 / 88 Branchbran 0.0% 0 / 32 Conditioncond 0.0% 0 / 20 MC/DCmcdc 0.0% 0 / 13 Subroutinesub 35.7% 10 / 28 Podpod n/a totaltotal 32.0% 58 / 181 CC 25 SCAR 56.3
CC
25
Cov
34%
__ANON__
600.0
__ANON__
6.0
__ANON__
2.0
CRAP 278.0
« Ro.pm ↑ Summary Ro/Latn.pm »
1 =encoding utf8
2
3 =head1 NAME
4
5 Locale::CLDR::Locales::Ro::Latn::Md - Package for language Romanian
6
7 =cut
8
9 package Locale::CLDR::Locales::Ro::Latn::Md;
10 # This file auto generated from Data\common\main\ro_MD.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::Ro::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 'sw_CD' => 'swahili (R. D. Congo)',
35 'wal' => 'wolaytta',
36
37 );
38 0 ▶ if (@_) {
Branch: 1 branch
BranchTrueFalseTotal
if (@_) 0 0 0
39 0 return $languages{$_[0]};
40 }
41 0 return \%languages;
42 }
43 0 },
44 1 );
45
46 has 'display_name_region' => (
47 is => 'ro',
48 isa => HashRef[Str],
49 init_arg => undef,
50 0 ▶ default => sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
51 {
52 0 'MM' => 'Myanmar',
53
54 }
55 },
56 1 );
57
58 has 'units' => (
59 is => 'ro',
60 isa => HashRef[HashRef[HashRef[Str]]],
61 init_arg => undef,
62 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
63 0 'narrow' => {
64 # Long Unit Identifier
65 'duration-day' => {
66 'few' => q({0} zile),
67 'one' => q({0} zi),
68 'other' => q({0} zile),
69 },
70 # Core Unit Identifier
71 'day' => {
72 'few' => q({0} zile),
73 'one' => q({0} zi),
74 'other' => q({0} zile),
75 },
76 # Long Unit Identifier
77 'duration-millisecond' => {
78 'name' => q(msec),
79 },
80 # Core Unit Identifier
81 'millisecond' => {
82 'name' => q(msec),
83 },
84 # Long Unit Identifier
85 'duration-minute' => {
86 'few' => q({0} min.),
87 'name' => q(min),
88 'one' => q({0} min.),
89 'other' => q({0} min.),
90 },
91 # Core Unit Identifier
92 'minute' => {
93 'few' => q({0} min.),
94 'name' => q(min),
95 'one' => q({0} min.),
96 'other' => q({0} min.),
97 },
98 # Long Unit Identifier
99 'duration-month' => {
100 'few' => q({0} luni),
101 'name' => q(lună),
102 'one' => q({0} lună),
103 'other' => q({0} luni),
104 },
105 # Core Unit Identifier
106 'month' => {
107 'few' => q({0} luni),
108 'name' => q(lună),
109 'one' => q({0} lună),
110 'other' => q({0} luni),
111 },
112 # Long Unit Identifier
113 'duration-year' => {
114 'few' => q({0} ani),
115 'one' => q({0} an),
116 'other' => q({0} ani),
117 },
118 # Core Unit Identifier
119 'year' => {
120 'few' => q({0} ani),
121 'one' => q({0} an),
122 'other' => q({0} ani),
123 },
124 },
125 'short' => {
126 # Long Unit Identifier
127 'duration-millisecond' => {
128 'name' => q(milisec.),
129 },
130 # Core Unit Identifier
131 'millisecond' => {
132 'name' => q(milisec.),
133 },
134 },
135 } }
136 1 );
137
138 has 'currencies' => (
139 is => 'ro',
140 isa => HashRef,
141 init_arg => undef,
142 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
143 0 'MDL' => {
144 symbol => 'L',
145 },
146 } },
147 1 );
148
149
150 has 'calendar_days' => (
151 is => 'ro',
152 isa => HashRef,
153 init_arg => undef,
154 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
155 0 'gregorian' => {
156 'format' => {
157 abbreviated => {
158 mon => 'Lun',
159 tue => 'Mar',
160 wed => 'Mie',
161 thu => 'Joi',
162 fri => 'Vin',
163 sat => 'Sâm',
164 sun => 'Dum'
165 },
166 short => {
167 mon => 'Lu',
168 tue => 'Ma',
169 wed => 'Mi',
170 thu => 'Jo',
171 fri => 'Vi',
172 sat => 'Sâ',
173 sun => 'Du'
174 },
175 },
176 'stand-alone' => {
177 narrow => {
178 mon => 'L',
179 tue => 'Ma',
180 wed => 'Mi',
181 thu => 'J',
182 fri => 'V',
183 sat => 'S',
184 sun => 'D'
185 },
186 },
187 },
188 } },
189 1 );
190
191 has 'calendar_quarters' => (
192 is => 'ro',
193 isa => HashRef,
194 init_arg => undef,
195 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
196 0 'gregorian' => {
197 'format' => {
198 abbreviated => {0 => 'trim. 1',
199 1 => 'trim. 2',
200 2 => 'trim. 3',
201 3 => 'trim. 4'
202 },
203 wide => {0 => 'trimestrul 1',
204 1 => 'trimestrul 2',
205 2 => 'trimestrul 3',
206 3 => 'trimestrul 4'
207 },
208 },
209 'stand-alone' => {
210 abbreviated => {0 => 'Trim. 1',
211 1 => 'Trim. 2',
212 2 => 'Trim. 3',
213 3 => 'Trim. 4'
214 },
215 wide => {0 => 'Trimestrul 1',
216 1 => 'Trimestrul 2',
217 2 => 'Trimestrul 3',
218 3 => 'Trimestrul 4'
219 },
220 },
221 },
222 } },
223 1 );
224
225 has 'day_period_data' => (
226 is => 'ro',
227 isa => CodeRef,
228 init_arg => undef,
229 0 ▶ default => sub { sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
Subroutine __ANON__: not called CC=24 SCAR=64.0
230 # Time in hhmm format
231 0 my ($self, $type, $time, $day_period_type) = @_;
232 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
233 SWITCH:
234 0 for ($type) {
235 0 ▶ if ($_ eq 'gregorian') {
Branch: 1 branch
BranchTrueFalseTotal
if ($_ eq "gregorian") 0 0 0
236 0 ▶ if($day_period_type eq 'default') {
Branch: 1 branch
BranchTrueFalseTotal
if ($day_period_type eq "default") 0 0 0
237 0 ▶ return 'midnight' if $time == 0;
Branch: 1 branch
BranchTrueFalseTotal
if $time == 0 0 0 0
238 0 ▶ return 'noon' if $time == 1200;
Branch: 1 branch
BranchTrueFalseTotal
if $time == 1200 0 0 0
239 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
240 && $time < 1800;
241 0 ▶ return 'evening1' if $time >= 1800
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 1800 and $time < 2200 0 0 0
Condition0%0/3
$time >= 1800 and $time < 2200
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 1800 and $time < 2200
$time >= 1800 $time < 2200
Truth table0%0/3
A and B
A= $time >= 1800B= $time < 2200
ABresult
0X0
100
111
242 && $time < 2200;
243 0 ▶ return 'morning1' if $time >= 500
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 500 and $time < 1200 0 0 0
Condition0%0/3
$time >= 500 and $time < 1200
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 500 and $time < 1200
$time >= 500 $time < 1200
Truth table0%0/3
A and B
A= $time >= 500B= $time < 1200
ABresult
0X0
100
111
244 && $time < 1200;
245 0 ▶ return 'night1' if $time >= 2200;
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 2200 0 0 0
246 0 ▶ return 'night1' if $time < 500;
Branch: 1 branch
BranchTrueFalseTotal
if $time < 500 0 0 0
247 }
248 0 ▶ if($day_period_type eq 'selection') {
Branch: 1 branch
BranchTrueFalseTotal
if ($day_period_type eq "selection") 0 0 0
249 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
250 && $time < 1800;
251 0 ▶ return 'evening1' if $time >= 1800
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 1800 and $time < 2200 0 0 0
Condition0%0/3
$time >= 1800 and $time < 2200
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 1800 and $time < 2200
$time >= 1800 $time < 2200
Truth table0%0/3
A and B
A= $time >= 1800B= $time < 2200
ABresult
0X0
100
111
252 && $time < 2200;
253 0 ▶ return 'morning1' if $time >= 500
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 500 and $time < 1200 0 0 0
Condition0%0/3
$time >= 500 and $time < 1200
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 500 and $time < 1200
$time >= 500 $time < 1200
Truth table0%0/3
A and B
A= $time >= 500B= $time < 1200
ABresult
0X0
100
111
254 && $time < 1200;
255 0 ▶ return 'night1' if $time >= 2200;
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 2200 0 0 0
256 0 ▶ return 'night1' if $time < 500;
Branch: 1 branch
BranchTrueFalseTotal
if $time < 500 0 0 0
257 }
258 0 last SWITCH;
259 }
260 }
261 0 } },
262 1 );
263
264 0 ▶around day_period_data => sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
265 0 my ($orig, $self) = @_;
266 0 return $self->$orig;
267 1 };
268
269 has 'day_periods' => (
270 is => 'ro',
271 isa => HashRef,
272 init_arg => undef,
273 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
274 0 'gregorian' => {
275 'format' => {
276 'narrow' => {
277 'afternoon1' => q{după-amiază},
278 'evening1' => q{seară},
279 'midnight' => q{miezul nopții},
280 'morning1' => q{dimineață},
281 'night1' => q{noapte},
282 'noon' => q{amiază},
283 },
284 'wide' => {
285 'afternoon1' => q{după-amiaza},
286 'evening1' => q{seara},
287 'midnight' => q{miezul nopții},
288 'morning1' => q{dimineața},
289 'night1' => q{noaptea},
290 'noon' => q{amiază},
291 },
292 },
293 'stand-alone' => {
294 'narrow' => {
295 'afternoon1' => q{după-amiază},
296 'evening1' => q{seară},
297 'morning1' => q{dimineață},
298 'night1' => q{noapte},
299 },
300 'wide' => {
301 'midnight' => q{miezul nopții},
302 'noon' => q{amiază},
303 },
304 },
305 },
306 } },
307 1 );
308
309 has 'eras' => (
310 is => 'ro',
311 isa => HashRef,
312 init_arg => undef,
313 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
314 0 'gregorian' => {
315 },
316 } },
317 1 );
318
319 has 'date_formats' => (
320 is => 'ro',
321 isa => HashRef,
322 init_arg => undef,
323 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
324 0 'gregorian' => {
325 },
326 } },
327 1 );
328
329 has 'time_formats' => (
330 is => 'ro',
331 isa => HashRef,
332 init_arg => undef,
333 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
334 0 'gregorian' => {
335 },
336 } },
337 1 );
338
339 has 'datetime_formats' => (
340 is => 'ro',
341 isa => HashRef,
342 init_arg => undef,
343 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
344 0 'gregorian' => {
345 },
346 } },
347 1 );
348
349 has 'datetime_formats_available_formats' => (
350 is => 'ro',
351 isa => HashRef,
352 init_arg => undef,
353 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
354 0 } },
355 1 );
356
357 has 'datetime_formats_append_item' => (
358 is => 'ro',
359 isa => HashRef,
360 init_arg => undef,
361 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
362 0 } },
363 1 );
364
365 has 'datetime_formats_interval' => (
366 is => 'ro',
367 isa => HashRef,
368 init_arg => undef,
369 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
370 0 } },
371 1 );
372
373 1 ▶no Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
374
375 1 1;
376
377 # vim: tabstop=4
« Ro.pm ↑ Summary Ro/Latn.pm »