Ar/Arab/Ly.pm

filter: Statementstmt 55.5% 50 / 90 Branchbran 2.6% 1 / 38 Conditioncond 0.0% 0 / 44 MC/DCmcdc 0.0% 0 / 29 Subroutinesub 40.7% 11 / 27 Podpod n/a totaltotal 27.1% 62 / 228 CC 35 SCAR 65.0
CC
35
Cov
30%
__ANON__
1190.0
__ANON__
6.0
__ANON__
2.0
CRAP 664.1
« Ar/Arab/Lb.pm ↑ Summary Ar/Arab/Sa.pm »
1 =encoding utf8
2
3 =head1 NAME
4
5 Locale::CLDR::Locales::Ar::Arab::Ly - Package for language Arabic
6
7 =cut
8
9 package Locale::CLDR::Locales::Ar::Arab::Ly;
10 # This file auto generated from Data\common\main\ar_LY.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 '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 'arn' => 'المابودونجونية',
35 'gn' => 'الغورانية',
36 'hsb' => 'صوربيا العليا',
37 'lo' => 'اللاوو',
38 'sh' => 'الكرواتية الصربية',
39 'sma' => 'سامي الجنوبية',
40 'sw' => 'السواحيلية',
41 'sw_CD' => 'السواحيلية الكونغولية',
42 'ti' => 'التيغرينية',
43
44 );
45 0 ▶ if (@_) {
Branch: 1 branch
BranchTrueFalseTotal
if (@_) 0 0 0
46 0 return $languages{$_[0]};
47 }
48 0 return \%languages;
49 }
50 0 },
51 1 );
52
53 has 'display_name_region' => (
54 is => 'ro',
55 isa => HashRef[Str],
56 init_arg => undef,
57 0 ▶ default => sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
58 {
59 0 'EA' => 'سبتة ومليلية',
60 'MS' => 'مونتيسيرات',
61 'UY' => 'أوروغواي',
62
63 }
64 },
65 1 );
66
67 has 'characters' => (
68 is => 'ro',
69 isa => HashRef,
70 init_arg => undef,
71 default => $^V ge v5.18.0
72 ? eval <<'EOT'
73 sub {
74 no warnings 'experimental::regex_sets';
75 return {
76 numbers => qr{[‎ \- ‑ , . % ‰ + 0 1 2 3 4 5 6 7 8 9]},
77 };
78 },
79 EOT
80 0 ▶: sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
81 0 return {};
82 },
83 1 ▶);
Subroutine BEGIN: called CC=1 SCAR=0.0
Branch: 1 branch
BranchTrueFalseTotal
$^V ge v5.18.0 ? : 1 0 1
84
85
86 1 has 'default_numbering_system' => (
87 is => 'ro',
88 isa => Str,
89 init_arg => undef,
90 default => 'latn',
91 );
92
93 has 'number_symbols' => (
94 is => 'ro',
95 isa => HashRef,
96 init_arg => undef,
97 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
98 0 'latn' => {
99 'decimal' => q(,),
100 'group' => q(.),
101 },
102 } }
103 1 );
104
105 has 'day_period_data' => (
106 is => 'ro',
107 isa => CodeRef,
108 init_arg => undef,
109 0 ▶ default => sub { sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
Subroutine __ANON__: not called CC=34 SCAR=70.8
110 # Time in hhmm format
111 0 my ($self, $type, $time, $day_period_type) = @_;
112 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
113 SWITCH:
114 0 for ($type) {
115 0 ▶ if ($_ eq 'gregorian') {
Branch: 1 branch
BranchTrueFalseTotal
if ($_ eq "gregorian") 0 0 0
116 0 ▶ if($day_period_type eq 'default') {
Branch: 1 branch
BranchTrueFalseTotal
if ($day_period_type eq "default") 0 0 0
117 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
118 && $time < 1300;
119 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
120 && $time < 1800;
121 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
122 && $time < 2400;
123 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
124 && $time < 600;
125 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
126 && $time < 1200;
127 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
128 && $time < 100;
129 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
130 && $time < 300;
131 }
132 0 ▶ if($day_period_type eq 'selection') {
Branch: 1 branch
BranchTrueFalseTotal
if ($day_period_type eq "selection") 0 0 0
133 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
134 && $time < 1300;
135 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
136 && $time < 1800;
137 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
138 && $time < 2400;
139 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
140 && $time < 600;
141 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
142 && $time < 1200;
143 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
144 && $time < 100;
145 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
146 && $time < 300;
147 }
148 0 last SWITCH;
149 }
150 }
151 0 } },
152 1 );
153
154 0 ▶around day_period_data => sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
155 0 my ($orig, $self) = @_;
156 0 return $self->$orig;
157 1 };
158
159 has 'day_periods' => (
160 is => 'ro',
161 isa => HashRef,
162 init_arg => undef,
163 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
164 0 'gregorian' => {
165 'format' => {
166 'abbreviated' => {
167 'afternoon1' => q{ظهرًا},
168 'afternoon2' => q{بعد الظهر},
169 'evening1' => q{مساءً},
170 'morning1' => q{فجرًا},
171 'morning2' => q{ص},
172 'night1' => q{في المساء},
173 'night2' => q{ل},
174 },
175 },
176 },
177 } },
178 1 );
179
180 has 'eras' => (
181 is => 'ro',
182 isa => HashRef,
183 init_arg => undef,
184 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
185 0 'gregorian' => {
186 },
187 } },
188 1 );
189
190 has 'date_formats' => (
191 is => 'ro',
192 isa => HashRef,
193 init_arg => undef,
194 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
195 0 'gregorian' => {
196 },
197 } },
198 1 );
199
200 has 'time_formats' => (
201 is => 'ro',
202 isa => HashRef,
203 init_arg => undef,
204 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
205 0 'gregorian' => {
206 },
207 } },
208 1 );
209
210 has 'datetime_formats' => (
211 is => 'ro',
212 isa => HashRef,
213 init_arg => undef,
214 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
215 0 'gregorian' => {
216 },
217 } },
218 1 );
219
220 has 'datetime_formats_available_formats' => (
221 is => 'ro',
222 isa => HashRef,
223 init_arg => undef,
224 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
225 0 } },
226 1 );
227
228 has 'datetime_formats_append_item' => (
229 is => 'ro',
230 isa => HashRef,
231 init_arg => undef,
232 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
233 0 } },
234 1 );
235
236 has 'datetime_formats_interval' => (
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 } },
242 1 );
243
244 1 ▶no Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
245
246 1 1;
247
248 # vim: tabstop=4
« Ar/Arab/Lb.pm ↑ Summary Ar/Arab/Sa.pm »