En/Latn/Sg.pm

filter: Statementstmt 47.7% 43 / 90 Branchbran 0.0% 0 / 60 Conditioncond 0.0% 0 / 38 MC/DCmcdc 0.0% 0 / 25 Subroutinesub 45.4% 10 / 22 Podpod n/a totaltotal 22.5% 53 / 235 CC 45 SCAR 72.5
CC
45
Cov
23%
__ANON__
2070.0
__ANON__
2.0
__ANON__
2.0
CRAP 1411.8
« En/Latn/Ie.pm ↑ Summary En/Latn/Nz.pm »
1 =encoding utf8
2
3 =head1 NAME
4
5 Locale::CLDR::Locales::En::Latn::Sg - Package for language English
6
7 =cut
8
9 package Locale::CLDR::Locales::En::Latn::Sg;
10 # This file auto generated from Data\common\main\en_SG.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::En::Latn::001');
27 has 'currencies' => (
28 is => 'ro',
29 isa => HashRef,
30 init_arg => undef,
31 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
32 0 'SGD' => {
33 symbol => '$',
34 },
35 } },
36 1 );
37
38
39 has 'day_period_data' => (
40 is => 'ro',
41 isa => CodeRef,
42 init_arg => undef,
43 0 ▶ default => sub { sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
Subroutine __ANON__: not called CC=45 SCAR=76.4
44 # Time in hhmm format
45 0 my ($self, $type, $time, $day_period_type) = @_;
46 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
47 SWITCH:
48 0 for ($type) {
49 0 ▶ if ($_ eq 'generic') {
Branch: 1 branch
BranchTrueFalseTotal
if ($_ eq "generic") 0 0 0
50 0 ▶ if($day_period_type eq 'default') {
Branch: 1 branch
BranchTrueFalseTotal
if ($day_period_type eq "default") 0 0 0
51 0 ▶ return 'midnight' if $time == 0;
Branch: 1 branch
BranchTrueFalseTotal
if $time == 0 0 0 0
52 0 ▶ return 'noon' if $time == 1200;
Branch: 1 branch
BranchTrueFalseTotal
if $time == 1200 0 0 0
53 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
54 && $time < 1800;
55 0 ▶ return 'evening1' if $time >= 1800
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 1800 and $time < 2100 0 0 0
Condition0%0/3
$time >= 1800 and $time < 2100
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 1800 and $time < 2100
$time >= 1800 $time < 2100
Truth table0%0/3
A and B
A= $time >= 1800B= $time < 2100
ABresult
0X0
100
111
56 && $time < 2100;
57 0 ▶ return 'morning1' 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
58 && $time < 1200;
59 0 ▶ return 'night1' if $time >= 2100;
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 2100 0 0 0
60 0 ▶ return 'night1' if $time < 600;
Branch: 1 branch
BranchTrueFalseTotal
if $time < 600 0 0 0
61 }
62 0 ▶ if($day_period_type eq 'selection') {
Branch: 1 branch
BranchTrueFalseTotal
if ($day_period_type eq "selection") 0 0 0
63 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
64 && $time < 1800;
65 0 ▶ return 'evening1' if $time >= 1800
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 1800 and $time < 2100 0 0 0
Condition0%0/3
$time >= 1800 and $time < 2100
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 1800 and $time < 2100
$time >= 1800 $time < 2100
Truth table0%0/3
A and B
A= $time >= 1800B= $time < 2100
ABresult
0X0
100
111
66 && $time < 2100;
67 0 ▶ return 'morning1' 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
68 && $time < 1200;
69 0 ▶ return 'night1' if $time >= 2100;
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 2100 0 0 0
70 0 ▶ return 'night1' if $time < 600;
Branch: 1 branch
BranchTrueFalseTotal
if $time < 600 0 0 0
71 }
72 0 last SWITCH;
73 }
74 0 ▶ if ($_ eq 'gregorian') {
Branch: 1 branch
BranchTrueFalseTotal
if ($_ eq "gregorian") 0 0 0
75 0 ▶ if($day_period_type eq 'default') {
Branch: 1 branch
BranchTrueFalseTotal
if ($day_period_type eq "default") 0 0 0
76 0 ▶ return 'midnight' if $time == 0;
Branch: 1 branch
BranchTrueFalseTotal
if $time == 0 0 0 0
77 0 ▶ return 'noon' if $time == 1200;
Branch: 1 branch
BranchTrueFalseTotal
if $time == 1200 0 0 0
78 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
79 && $time < 1800;
80 0 ▶ return 'evening1' if $time >= 1800
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 1800 and $time < 2100 0 0 0
Condition0%0/3
$time >= 1800 and $time < 2100
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 1800 and $time < 2100
$time >= 1800 $time < 2100
Truth table0%0/3
A and B
A= $time >= 1800B= $time < 2100
ABresult
0X0
100
111
81 && $time < 2100;
82 0 ▶ return 'morning1' 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
83 && $time < 1200;
84 0 ▶ return 'night1' if $time >= 2100;
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 2100 0 0 0
85 0 ▶ return 'night1' if $time < 600;
Branch: 1 branch
BranchTrueFalseTotal
if $time < 600 0 0 0
86 }
87 0 ▶ if($day_period_type eq 'selection') {
Branch: 1 branch
BranchTrueFalseTotal
if ($day_period_type eq "selection") 0 0 0
88 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
89 && $time < 1800;
90 0 ▶ return 'evening1' if $time >= 1800
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 1800 and $time < 2100 0 0 0
Condition0%0/3
$time >= 1800 and $time < 2100
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 1800 and $time < 2100
$time >= 1800 $time < 2100
Truth table0%0/3
A and B
A= $time >= 1800B= $time < 2100
ABresult
0X0
100
111
91 && $time < 2100;
92 0 ▶ return 'morning1' 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
93 && $time < 1200;
94 0 ▶ return 'night1' if $time >= 2100;
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 2100 0 0 0
95 0 ▶ return 'night1' if $time < 600;
Branch: 1 branch
BranchTrueFalseTotal
if $time < 600 0 0 0
96 }
97 0 last SWITCH;
98 }
99 }
100 0 } },
101 1 );
102
103 0 ▶around day_period_data => sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
104 0 my ($orig, $self) = @_;
105 0 return $self->$orig;
106 1 };
107
108 has 'eras' => (
109 is => 'ro',
110 isa => HashRef,
111 init_arg => undef,
112 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
113 0 'generic' => {
114 },
115 'gregorian' => {
116 },
117 } },
118 1 );
119
120 has 'date_formats' => (
121 is => 'ro',
122 isa => HashRef,
123 init_arg => undef,
124 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
125 0 'generic' => {
126 'short' => q{d/M/yy GGGGG},
127 },
128 'gregorian' => {
129 'short' => q{d/M/yy},
130 },
131 } },
132 1 );
133
134 has 'time_formats' => (
135 is => 'ro',
136 isa => HashRef,
137 init_arg => undef,
138 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
139 0 'generic' => {
140 },
141 'gregorian' => {
142 },
143 } },
144 1 );
145
146 has 'datetime_formats' => (
147 is => 'ro',
148 isa => HashRef,
149 init_arg => undef,
150 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
151 0 'generic' => {
152 },
153 'gregorian' => {
154 },
155 } },
156 1 );
157
158 has 'datetime_formats_available_formats' => (
159 is => 'ro',
160 isa => HashRef,
161 init_arg => undef,
162 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
163 0 'generic' => {
164 yyyyMEd => q{E, d/M/y GGGGG},
165 },
166 } },
167 1 );
168
169 has 'datetime_formats_append_item' => (
170 is => 'ro',
171 isa => HashRef,
172 init_arg => undef,
173 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
174 0 } },
175 1 );
176
177 has 'datetime_formats_interval' => (
178 is => 'ro',
179 isa => HashRef,
180 init_arg => undef,
181 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
182 0 'generic' => {
183 MEd => {
184 M => q{E, d/M – E, d/M},
185 d => q{E, d/M – E, d/M},
186 },
187 MMMEd => {
188 M => q{E, d MMM – E, d MMM},
189 d => q{E, d MMM – E, d MMM},
190 },
191 Md => {
192 M => q{d/M – d/M},
193 d => q{d/M – d/M},
194 },
195 yMEd => {
196 M => q{E, d/M/y – E, d/M/y G},
197 d => q{E, d/M/y – E, d/M/y G},
198 y => q{E, d/M/y – E, d/M/y G},
199 },
200 yMMMEd => {
201 d => q{E, d MMM – E, d MMM y G},
202 },
203 yMd => {
204 M => q{d/M/y – d/M/y G},
205 d => q{d/M/y – d/M/y G},
206 y => q{d/M/y – d/M/y G},
207 },
208 },
209 'gregorian' => {
210 MEd => {
211 M => q{E, d/M – E, d/M},
212 d => q{E, d/M – E, d/M},
213 },
214 MMMEd => {
215 M => q{E, d MMM – E, d MMM},
216 d => q{E, d MMM – E, d MMM},
217 },
218 Md => {
219 M => q{d/M – d/M},
220 d => q{d/M – d/M},
221 },
222 yMEd => {
223 M => q{E, d/M/y – E, d/M/y},
224 d => q{E, d/M/y – E, d/M/y},
225 y => q{E, d/M/y – E, d/M/y},
226 },
227 yMMMEd => {
228 d => q{E, d MMM – E, d MMM y},
229 },
230 yMd => {
231 M => q{d/M/y – d/M/y},
232 d => q{d/M/y – d/M/y},
233 y => q{d/M/y – d/M/y},
234 },
235 },
236 } },
237 1 );
238
239 has 'time_zone_names' => (
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 'Malaysia' => {
245 short => {
246 'standard' => q#MYT#,
247 },
248 },
249 'Singapore' => {
250 short => {
251 'standard' => q#SGT#,
252 },
253 },
254 } }
255 1 );
256 1 ▶no Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
257
258 1 1;
259
260 # vim: tabstop=4
« En/Latn/Ie.pm ↑ Summary En/Latn/Nz.pm »