Ar/Arab/Ma.pm

filter: Statementstmt 58.5% 48 / 82 Branchbran 2.7% 1 / 36 Conditioncond 0.0% 0 / 44 MC/DCmcdc 0.0% 0 / 29 Subroutinesub 45.8% 11 / 24 Podpod n/a totaltotal 27.9% 60 / 215 CC 34 SCAR 65.7
CC
34
Cov
30%
__ANON__
1190.0
__ANON__
2.0
__ANON__
2.0
CRAP 710.4
« Ar/Arab/Dz.pm ↑ Summary Ar/Arab/Mr.pm »
1 =encoding utf8
2
3 =head1 NAME
4
5 Locale::CLDR::Locales::Ar::Arab::Ma - Package for language Arabic
6
7 =cut
8
9 package Locale::CLDR::Locales::Ar::Arab::Ma;
10 # This file auto generated from Data\common\main\ar_MA.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::Ar::Arab');
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 1 has 'default_numbering_system' => (
48 is => 'ro',
49 isa => Str,
50 init_arg => undef,
51 default => 'latn',
52 );
53
54 has 'number_symbols' => (
55 is => 'ro',
56 isa => HashRef,
57 init_arg => undef,
58 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
59 0 'latn' => {
60 'decimal' => q(,),
61 'group' => q(.),
62 },
63 } }
64 1 );
65
66 has 'calendar_months' => (
67 is => 'ro',
68 isa => HashRef,
69 init_arg => undef,
70 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
71 0 'gregorian' => {
72 'format' => {
73 wide => {
74 nonleap => [
75 undef(),
76 undef(),
77 undef(),
78 'أبريل',
79 'ماي',
80 undef(),
81 'يوليوز',
82 'غشت',
83 'شتنبر',
84 undef(),
85 'نونبر',
86 'دجنبر'
87 ],
88 leap => [
89
90 ],
91 },
92 },
93 'stand-alone' => {
94 narrow => {
95 nonleap => [
96 undef(),
97 undef(),
98 undef(),
99 'أ',
100 'م',
101 'ن',
102 'ل',
103 undef(),
104 'ش',
105 'ك',
106 'ب',
107 'د'
108 ],
109 leap => [
110
111 ],
112 },
113 },
114 },
115 } },
116 1 );
117
118 has 'day_period_data' => (
119 is => 'ro',
120 isa => CodeRef,
121 init_arg => undef,
122 0 ▶ default => sub { sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
Subroutine __ANON__: not called CC=34 SCAR=70.8
123 # Time in hhmm format
124 0 my ($self, $type, $time, $day_period_type) = @_;
125 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
126 SWITCH:
127 0 for ($type) {
128 0 ▶ if ($_ eq 'gregorian') {
Branch: 1 branch
BranchTrueFalseTotal
if ($_ eq "gregorian") 0 0 0
129 0 ▶ if($day_period_type eq 'default') {
Branch: 1 branch
BranchTrueFalseTotal
if ($day_period_type eq "default") 0 0 0
130 0 ▶ return 'afternoon1' if $time >= 1200
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 1200 and $time < 1300 0 0 0
Condition0%0/3
$time >= 1200 and $time < 1300
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 1200 and $time < 1300
$time >= 1200 $time < 1300
Truth table0%0/3
A and B
A= $time >= 1200B= $time < 1300
ABresult
0X0
100
111
131 && $time < 1300;
132 0 ▶ return 'afternoon2' if $time >= 1300
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 1300 and $time < 1800 0 0 0
Condition0%0/3
$time >= 1300 and $time < 1800
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 1300 and $time < 1800
$time >= 1300 $time < 1800
Truth table0%0/3
A and B
A= $time >= 1300B= $time < 1800
ABresult
0X0
100
111
133 && $time < 1800;
134 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
135 && $time < 2400;
136 0 ▶ return 'morning1' if $time >= 300
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 300 and $time < 600 0 0 0
Condition0%0/3
$time >= 300 and $time < 600
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 300 and $time < 600
$time >= 300 $time < 600
Truth table0%0/3
A and B
A= $time >= 300B= $time < 600
ABresult
0X0
100
111
137 && $time < 600;
138 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
139 && $time < 1200;
140 0 ▶ return 'night1' if $time >= 0
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 0 and $time < 100 0 0 0
Condition0%0/3
$time >= 0 and $time < 100
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 0 and $time < 100
$time >= 0 $time < 100
Truth table0%0/3
A and B
A= $time >= 0B= $time < 100
ABresult
0X0
100
111
141 && $time < 100;
142 0 ▶ return 'night2' if $time >= 100
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 100 and $time < 300 0 0 0
Condition0%0/3
$time >= 100 and $time < 300
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 100 and $time < 300
$time >= 100 $time < 300
Truth table0%0/3
A and B
A= $time >= 100B= $time < 300
ABresult
0X0
100
111
143 && $time < 300;
144 }
145 0 ▶ if($day_period_type eq 'selection') {
Branch: 1 branch
BranchTrueFalseTotal
if ($day_period_type eq "selection") 0 0 0
146 0 ▶ return 'afternoon1' if $time >= 1200
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 1200 and $time < 1300 0 0 0
Condition0%0/3
$time >= 1200 and $time < 1300
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 1200 and $time < 1300
$time >= 1200 $time < 1300
Truth table0%0/3
A and B
A= $time >= 1200B= $time < 1300
ABresult
0X0
100
111
147 && $time < 1300;
148 0 ▶ return 'afternoon2' if $time >= 1300
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 1300 and $time < 1800 0 0 0
Condition0%0/3
$time >= 1300 and $time < 1800
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 1300 and $time < 1800
$time >= 1300 $time < 1800
Truth table0%0/3
A and B
A= $time >= 1300B= $time < 1800
ABresult
0X0
100
111
149 && $time < 1800;
150 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
151 && $time < 2400;
152 0 ▶ return 'morning1' if $time >= 300
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 300 and $time < 600 0 0 0
Condition0%0/3
$time >= 300 and $time < 600
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 300 and $time < 600
$time >= 300 $time < 600
Truth table0%0/3
A and B
A= $time >= 300B= $time < 600
ABresult
0X0
100
111
153 && $time < 600;
154 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
155 && $time < 1200;
156 0 ▶ return 'night1' if $time >= 0
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 0 and $time < 100 0 0 0
Condition0%0/3
$time >= 0 and $time < 100
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 0 and $time < 100
$time >= 0 $time < 100
Truth table0%0/3
A and B
A= $time >= 0B= $time < 100
ABresult
0X0
100
111
157 && $time < 100;
158 0 ▶ return 'night2' if $time >= 100
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 100 and $time < 300 0 0 0
Condition0%0/3
$time >= 100 and $time < 300
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 100 and $time < 300
$time >= 100 $time < 300
Truth table0%0/3
A and B
A= $time >= 100B= $time < 300
ABresult
0X0
100
111
159 && $time < 300;
160 }
161 0 last SWITCH;
162 }
163 }
164 0 } },
165 1 );
166
167 0 ▶around day_period_data => sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
168 0 my ($orig, $self) = @_;
169 0 return $self->$orig;
170 1 };
171
172 has 'eras' => (
173 is => 'ro',
174 isa => HashRef,
175 init_arg => undef,
176 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
177 0 'gregorian' => {
178 },
179 } },
180 1 );
181
182 has 'date_formats' => (
183 is => 'ro',
184 isa => HashRef,
185 init_arg => undef,
186 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
187 0 'gregorian' => {
188 },
189 } },
190 1 );
191
192 has 'time_formats' => (
193 is => 'ro',
194 isa => HashRef,
195 init_arg => undef,
196 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
197 0 'gregorian' => {
198 'full' => q{HH:mm:ss zzzz},
199 'long' => q{HH:mm:ss z},
200 'medium' => q{HH:mm:ss},
201 'short' => q{HH:mm},
202 },
203 } },
204 1 );
205
206 has 'datetime_formats' => (
207 is => 'ro',
208 isa => HashRef,
209 init_arg => undef,
210 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
211 0 'gregorian' => {
212 },
213 } },
214 1 );
215
216 has 'datetime_formats_available_formats' => (
217 is => 'ro',
218 isa => HashRef,
219 init_arg => undef,
220 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
221 0 } },
222 1 );
223
224 has 'datetime_formats_append_item' => (
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 } },
230 1 );
231
232 has 'datetime_formats_interval' => (
233 is => 'ro',
234 isa => HashRef,
235 init_arg => undef,
236 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
237 0 } },
238 1 );
239
240 1 ▶no Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
241
242 1 1;
243
244 # vim: tabstop=4
« Ar/Arab/Dz.pm ↑ Summary Ar/Arab/Mr.pm »