Ar/Arab/Lb.pm

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