| 1 | =encoding utf8 | ||||||||||||||||||||||||||||
| 2 | |||||||||||||||||||||||||||||
| 3 | =head1 NAME | ||||||||||||||||||||||||||||
| 4 | |||||||||||||||||||||||||||||
| 5 | Locale::CLDR::Locales::Pa::Arab - Package for language Punjabi | ||||||||||||||||||||||||||||
| 6 | |||||||||||||||||||||||||||||
| 7 | =cut | ||||||||||||||||||||||||||||
| 8 | |||||||||||||||||||||||||||||
| 9 | package Locale::CLDR::Locales::Pa::Arab; | ||||||||||||||||||||||||||||
| 10 | # This file auto generated from Data\common\main\pa_Arab.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::Root'); | |||||||||||||||||||||||||||
| 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 | 'pa' => 'پنجابی', | ||||||||||||||||||||||||||||
| 35 | |||||||||||||||||||||||||||||
| 36 | ); | ||||||||||||||||||||||||||||
| 37 | 0 | ▶ | if (@_) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 38 | 0 | return $languages{$_[0]}; | |||||||||||||||||||||||||||
| 39 | } | ||||||||||||||||||||||||||||
| 40 | 0 | return \%languages; | |||||||||||||||||||||||||||
| 41 | } | ||||||||||||||||||||||||||||
| 42 | 0 | }, | |||||||||||||||||||||||||||
| 43 | 1 | ); | |||||||||||||||||||||||||||
| 44 | |||||||||||||||||||||||||||||
| 45 | has 'display_name_script' => ( | ||||||||||||||||||||||||||||
| 46 | is => 'ro', | ||||||||||||||||||||||||||||
| 47 | isa => CodeRef, | ||||||||||||||||||||||||||||
| 48 | init_arg => undef, | ||||||||||||||||||||||||||||
| 49 | 0 | ▶ | default => sub { | ||||||||||||||||||||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||||||||||||||||||||
| 50 | 0 | ▶ | sub { | ||||||||||||||||||||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
| |||||||||||||||||||||||||||||
| 51 | 0 | my %scripts = ( | |||||||||||||||||||||||||||
| 52 | 'Arab' => 'عربی', | ||||||||||||||||||||||||||||
| 53 | 'Aran' => 'نستعلیق', | ||||||||||||||||||||||||||||
| 54 | 'Guru' => 'گُرمُکھی', | ||||||||||||||||||||||||||||
| 55 | |||||||||||||||||||||||||||||
| 56 | ); | ||||||||||||||||||||||||||||
| 57 | 0 | ▶ | if ( @_ ) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 58 | 0 | return $scripts{$_[0]}; | |||||||||||||||||||||||||||
| 59 | } | ||||||||||||||||||||||||||||
| 60 | 0 | return \%scripts; | |||||||||||||||||||||||||||
| 61 | } | ||||||||||||||||||||||||||||
| 62 | 0 | } | |||||||||||||||||||||||||||
| 63 | 1 | ); | |||||||||||||||||||||||||||
| 64 | |||||||||||||||||||||||||||||
| 65 | has 'display_name_region' => ( | ||||||||||||||||||||||||||||
| 66 | is => 'ro', | ||||||||||||||||||||||||||||
| 67 | isa => HashRef[Str], | ||||||||||||||||||||||||||||
| 68 | init_arg => undef, | ||||||||||||||||||||||||||||
| 69 | 0 | ▶ | default => sub { | ||||||||||||||||||||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||||||||||||||||||||
| 70 | { | ||||||||||||||||||||||||||||
| 71 | 0 | 'PK' => 'پاکستان', | |||||||||||||||||||||||||||
| 72 | |||||||||||||||||||||||||||||
| 73 | } | ||||||||||||||||||||||||||||
| 74 | }, | ||||||||||||||||||||||||||||
| 75 | 1 | ); | |||||||||||||||||||||||||||
| 76 | |||||||||||||||||||||||||||||
| 77 | has 'text_orientation' => ( | ||||||||||||||||||||||||||||
| 78 | is => 'ro', | ||||||||||||||||||||||||||||
| 79 | isa => HashRef[Str], | ||||||||||||||||||||||||||||
| 80 | init_arg => undef, | ||||||||||||||||||||||||||||
| 81 | 0 | ▶ | default => sub { return { | ||||||||||||||||||||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||||||||||||||||||||
| 82 | 0 | lines => '', | |||||||||||||||||||||||||||
| 83 | characters => 'right-to-left', | ||||||||||||||||||||||||||||
| 84 | }} | ||||||||||||||||||||||||||||
| 85 | 1 | ); | |||||||||||||||||||||||||||
| 86 | |||||||||||||||||||||||||||||
| 87 | has 'characters' => ( | ||||||||||||||||||||||||||||
| 88 | is => 'ro', | ||||||||||||||||||||||||||||
| 89 | isa => HashRef, | ||||||||||||||||||||||||||||
| 90 | init_arg => undef, | ||||||||||||||||||||||||||||
| 91 | default => $^V ge v5.18.0 | ||||||||||||||||||||||||||||
| 92 | ? eval <<'EOT' | ||||||||||||||||||||||||||||
| 93 | sub { | ||||||||||||||||||||||||||||
| 94 | no warnings 'experimental::regex_sets'; | ||||||||||||||||||||||||||||
| 95 | return { | ||||||||||||||||||||||||||||
| 96 | auxiliary => qr{[ أ ٻ ة ٺ ټ ٽ]}, | ||||||||||||||||||||||||||||
| 97 | index => ['ء', 'آ', 'ؤ', 'ئ', 'ا', 'ب', 'پ', 'ت', 'ث', 'ٹ', 'ج', 'چ', 'ح', 'خ', 'د', 'ذ', 'ڈ', 'ر', 'ز', 'ڑ', 'ژ', 'س', 'ش', 'ص', 'ض', 'ط', 'ظ', 'ع', 'غ', 'ف', 'ق', 'ک', 'گ', 'ل', 'م', 'ن', 'ں', 'ه', 'ھ', 'ہ', 'و', 'ی', 'ے'], | ||||||||||||||||||||||||||||
| 98 | main => qr{[ُ ء آ ؤ ئ ا ب پ ت ث ٹ ج چ ح خ د ذ ڈ ر ز ڑ ژ س ش ص ض ط ظ ع غ ف ق ک گ ل م ن ں ه ھ ہ و ی ے]}, | ||||||||||||||||||||||||||||
| 99 | numbers => qr{[ \- ‑ , . % ‰ + 0 1 2 3 4 5 6 7 8 9]}, | ||||||||||||||||||||||||||||
| 100 | }; | ||||||||||||||||||||||||||||
| 101 | }, | ||||||||||||||||||||||||||||
| 102 | EOT | ||||||||||||||||||||||||||||
| 103 | 0 | ▶ | : sub { | ||||||||||||||||||||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||||||||||||||||||||
| 104 | 0 | return { index => ['ء', 'آ', 'ؤ', 'ئ', 'ا', 'ب', 'پ', 'ت', 'ث', 'ٹ', 'ج', 'چ', 'ح', 'خ', 'د', 'ذ', 'ڈ', 'ر', 'ز', 'ڑ', 'ژ', 'س', 'ش', 'ص', 'ض', 'ط', 'ظ', 'ع', 'غ', 'ف', 'ق', 'ک', 'گ', 'ل', 'م', 'ن', 'ں', 'ه', 'ھ', 'ہ', 'و', 'ی', 'ے'], }; | |||||||||||||||||||||||||||
| 105 | }, | ||||||||||||||||||||||||||||
| 106 | 1 | ▶ | ); | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 107 | |||||||||||||||||||||||||||||
| 108 | |||||||||||||||||||||||||||||
| 109 | has 'yesstr' => ( | ||||||||||||||||||||||||||||
| 110 | is => 'ro', | ||||||||||||||||||||||||||||
| 111 | isa => RegexpRef, | ||||||||||||||||||||||||||||
| 112 | init_arg => undef, | ||||||||||||||||||||||||||||
| 113 | 0 | ▶ | default => sub { qr'^(?i:ہاں|yes|y)$' } | ||||||||||||||||||||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||||||||||||||||||||
| 114 | 1 | ); | |||||||||||||||||||||||||||
| 115 | |||||||||||||||||||||||||||||
| 116 | has 'nostr' => ( | ||||||||||||||||||||||||||||
| 117 | is => 'ro', | ||||||||||||||||||||||||||||
| 118 | isa => RegexpRef, | ||||||||||||||||||||||||||||
| 119 | init_arg => undef, | ||||||||||||||||||||||||||||
| 120 | 0 | ▶ | default => sub { qr'^(?i:نہيں|no|n)$' } | ||||||||||||||||||||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||||||||||||||||||||
| 121 | 1 | ); | |||||||||||||||||||||||||||
| 122 | |||||||||||||||||||||||||||||
| 123 | 1 | has 'default_numbering_system' => ( | |||||||||||||||||||||||||||
| 124 | is => 'ro', | ||||||||||||||||||||||||||||
| 125 | isa => Str, | ||||||||||||||||||||||||||||
| 126 | init_arg => undef, | ||||||||||||||||||||||||||||
| 127 | default => 'arabext', | ||||||||||||||||||||||||||||
| 128 | ); | ||||||||||||||||||||||||||||
| 129 | |||||||||||||||||||||||||||||
| 130 | 1 | has native_numbering_system => ( | |||||||||||||||||||||||||||
| 131 | is => 'ro', | ||||||||||||||||||||||||||||
| 132 | isa => Str, | ||||||||||||||||||||||||||||
| 133 | init_arg => undef, | ||||||||||||||||||||||||||||
| 134 | default => 'arabext', | ||||||||||||||||||||||||||||
| 135 | ); | ||||||||||||||||||||||||||||
| 136 | |||||||||||||||||||||||||||||
| 137 | has 'number_symbols' => ( | ||||||||||||||||||||||||||||
| 138 | is => 'ro', | ||||||||||||||||||||||||||||
| 139 | isa => HashRef, | ||||||||||||||||||||||||||||
| 140 | init_arg => undef, | ||||||||||||||||||||||||||||
| 141 | 0 | ▶ | default => sub { { | ||||||||||||||||||||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||||||||||||||||||||
| 142 | 0 | 'arabext' => { | |||||||||||||||||||||||||||
| 143 | 'timeSeparator' => q(:), | ||||||||||||||||||||||||||||
| 144 | }, | ||||||||||||||||||||||||||||
| 145 | 'latn' => { | ||||||||||||||||||||||||||||
| 146 | 'minusSign' => q(-), | ||||||||||||||||||||||||||||
| 147 | 'plusSign' => q(+), | ||||||||||||||||||||||||||||
| 148 | }, | ||||||||||||||||||||||||||||
| 149 | } } | ||||||||||||||||||||||||||||
| 150 | 1 | ); | |||||||||||||||||||||||||||
| 151 | |||||||||||||||||||||||||||||
| 152 | has 'currencies' => ( | ||||||||||||||||||||||||||||
| 153 | is => 'ro', | ||||||||||||||||||||||||||||
| 154 | isa => HashRef, | ||||||||||||||||||||||||||||
| 155 | init_arg => undef, | ||||||||||||||||||||||||||||
| 156 | 0 | ▶ | default => sub { { | ||||||||||||||||||||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||||||||||||||||||||
| 157 | 0 | 'EUR' => { | |||||||||||||||||||||||||||
| 158 | display_name => { | ||||||||||||||||||||||||||||
| 159 | 'currency' => q(يورو), | ||||||||||||||||||||||||||||
| 160 | }, | ||||||||||||||||||||||||||||
| 161 | }, | ||||||||||||||||||||||||||||
| 162 | 'INR' => { | ||||||||||||||||||||||||||||
| 163 | display_name => { | ||||||||||||||||||||||||||||
| 164 | 'currency' => q(روپئیہ [INR]), | ||||||||||||||||||||||||||||
| 165 | }, | ||||||||||||||||||||||||||||
| 166 | }, | ||||||||||||||||||||||||||||
| 167 | 'PKR' => { | ||||||||||||||||||||||||||||
| 168 | symbol => 'ر', | ||||||||||||||||||||||||||||
| 169 | display_name => { | ||||||||||||||||||||||||||||
| 170 | 'currency' => q(روپئیہ), | ||||||||||||||||||||||||||||
| 171 | }, | ||||||||||||||||||||||||||||
| 172 | }, | ||||||||||||||||||||||||||||
| 173 | } }, | ||||||||||||||||||||||||||||
| 174 | 1 | ); | |||||||||||||||||||||||||||
| 175 | |||||||||||||||||||||||||||||
| 176 | |||||||||||||||||||||||||||||
| 177 | has 'calendar_months' => ( | ||||||||||||||||||||||||||||
| 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 | 'gregorian' => { | |||||||||||||||||||||||||||
| 183 | 'format' => { | ||||||||||||||||||||||||||||
| 184 | wide => { | ||||||||||||||||||||||||||||
| 185 | nonleap => [ | ||||||||||||||||||||||||||||
| 186 | 'جنوری', | ||||||||||||||||||||||||||||
| 187 | 'فروری', | ||||||||||||||||||||||||||||
| 188 | 'مارچ', | ||||||||||||||||||||||||||||
| 189 | 'اپریل', | ||||||||||||||||||||||||||||
| 190 | 'مئ', | ||||||||||||||||||||||||||||
| 191 | 'جون', | ||||||||||||||||||||||||||||
| 192 | 'جولائی', | ||||||||||||||||||||||||||||
| 193 | 'اگست', | ||||||||||||||||||||||||||||
| 194 | 'ستمبر', | ||||||||||||||||||||||||||||
| 195 | 'اکتوبر', | ||||||||||||||||||||||||||||
| 196 | 'نومبر', | ||||||||||||||||||||||||||||
| 197 | 'دسمبر' | ||||||||||||||||||||||||||||
| 198 | ], | ||||||||||||||||||||||||||||
| 199 | leap => [ | ||||||||||||||||||||||||||||
| 200 | |||||||||||||||||||||||||||||
| 201 | ], | ||||||||||||||||||||||||||||
| 202 | }, | ||||||||||||||||||||||||||||
| 203 | }, | ||||||||||||||||||||||||||||
| 204 | }, | ||||||||||||||||||||||||||||
| 205 | } }, | ||||||||||||||||||||||||||||
| 206 | 1 | ); | |||||||||||||||||||||||||||
| 207 | |||||||||||||||||||||||||||||
| 208 | has 'calendar_days' => ( | ||||||||||||||||||||||||||||
| 209 | is => 'ro', | ||||||||||||||||||||||||||||
| 210 | isa => HashRef, | ||||||||||||||||||||||||||||
| 211 | init_arg => undef, | ||||||||||||||||||||||||||||
| 212 | 0 | ▶ | default => sub { { | ||||||||||||||||||||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||||||||||||||||||||
| 213 | 0 | 'gregorian' => { | |||||||||||||||||||||||||||
| 214 | 'format' => { | ||||||||||||||||||||||||||||
| 215 | wide => { | ||||||||||||||||||||||||||||
| 216 | mon => 'پیر', | ||||||||||||||||||||||||||||
| 217 | tue => 'منگل', | ||||||||||||||||||||||||||||
| 218 | wed => 'بُدھ', | ||||||||||||||||||||||||||||
| 219 | thu => 'جمعرات', | ||||||||||||||||||||||||||||
| 220 | fri => 'جمعہ', | ||||||||||||||||||||||||||||
| 221 | sat => 'ہفتہ', | ||||||||||||||||||||||||||||
| 222 | sun => 'اتوار' | ||||||||||||||||||||||||||||
| 223 | }, | ||||||||||||||||||||||||||||
| 224 | }, | ||||||||||||||||||||||||||||
| 225 | }, | ||||||||||||||||||||||||||||
| 226 | } }, | ||||||||||||||||||||||||||||
| 227 | 1 | ); | |||||||||||||||||||||||||||
| 228 | |||||||||||||||||||||||||||||
| 229 | has 'calendar_quarters' => ( | ||||||||||||||||||||||||||||
| 230 | is => 'ro', | ||||||||||||||||||||||||||||
| 231 | isa => HashRef, | ||||||||||||||||||||||||||||
| 232 | init_arg => undef, | ||||||||||||||||||||||||||||
| 233 | 0 | ▶ | default => sub { { | ||||||||||||||||||||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||||||||||||||||||||
| 234 | 0 | 'gregorian' => { | |||||||||||||||||||||||||||
| 235 | 'format' => { | ||||||||||||||||||||||||||||
| 236 | wide => {0 => 'چوتھاي پہلاں', | ||||||||||||||||||||||||||||
| 237 | 1 => 'چوتھاي دوجا', | ||||||||||||||||||||||||||||
| 238 | 2 => 'چوتھاي تيجا', | ||||||||||||||||||||||||||||
| 239 | 3 => 'چوتھاي چوتھا' | ||||||||||||||||||||||||||||
| 240 | }, | ||||||||||||||||||||||||||||
| 241 | }, | ||||||||||||||||||||||||||||
| 242 | }, | ||||||||||||||||||||||||||||
| 243 | } }, | ||||||||||||||||||||||||||||
| 244 | 1 | ); | |||||||||||||||||||||||||||
| 245 | |||||||||||||||||||||||||||||
| 246 | has 'day_period_data' => ( | ||||||||||||||||||||||||||||
| 247 | is => 'ro', | ||||||||||||||||||||||||||||
| 248 | isa => CodeRef, | ||||||||||||||||||||||||||||
| 249 | init_arg => undef, | ||||||||||||||||||||||||||||
| 250 | 0 | ▶ | default => sub { sub { | ||||||||||||||||||||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
Subroutine
__ANON__: not called CC=43 SCAR=75.5
| |||||||||||||||||||||||||||||
| 251 | # Time in hhmm format | ||||||||||||||||||||||||||||
| 252 | 0 | my ($self, $type, $time, $day_period_type) = @_; | |||||||||||||||||||||||||||
| 253 | 0 | ▶ | $day_period_type //= 'default'; | ||||||||||||||||||||||||||
|
Condition0%0/2
$day_period_type //= "default"
MC/DC0%0/1
$day_period_type //= "default"
$day_period_type
Truth table0%0/2
A
A= $day_period_type
| |||||||||||||||||||||||||||||
| 254 | SWITCH: | ||||||||||||||||||||||||||||
| 255 | 0 | for ($type) { | |||||||||||||||||||||||||||
| 256 | 0 | ▶ | if ($_ eq 'generic') { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 257 | 0 | ▶ | if($day_period_type eq 'default') { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 258 | 0 | ▶ | return 'midnight' if $time == 0; | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 259 | 0 | ▶ | return 'afternoon1' if $time >= 1200 | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition0%0/3
$time >= 1200 and $time < 1600
MC/DC0%0/2
$time >= 1200 and $time < 1600
$time >= 1200
$time < 1600
Truth table0%0/3
A and B
A= $time >= 1200B= $time < 1600
| |||||||||||||||||||||||||||||
| 260 | && $time < 1600; | ||||||||||||||||||||||||||||
| 261 | 0 | ▶ | return 'evening1' if $time >= 1600 | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition0%0/3
$time >= 1600 and $time < 2100
MC/DC0%0/2
$time >= 1600 and $time < 2100
$time >= 1600
$time < 2100
Truth table0%0/3
A and B
A= $time >= 1600B= $time < 2100
| |||||||||||||||||||||||||||||
| 262 | && $time < 2100; | ||||||||||||||||||||||||||||
| 263 | 0 | ▶ | return 'morning1' if $time >= 400 | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition0%0/3
$time >= 400 and $time < 1200
MC/DC0%0/2
$time >= 400 and $time < 1200
$time >= 400
$time < 1200
Truth table0%0/3
A and B
A= $time >= 400B= $time < 1200
| |||||||||||||||||||||||||||||
| 264 | && $time < 1200; | ||||||||||||||||||||||||||||
| 265 | 0 | ▶ | return 'night1' if $time >= 2100; | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 266 | 0 | ▶ | return 'night1' if $time < 400; | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 267 | } | ||||||||||||||||||||||||||||
| 268 | 0 | ▶ | if($day_period_type eq 'selection') { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 269 | 0 | ▶ | return 'afternoon1' if $time >= 1200 | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition0%0/3
$time >= 1200 and $time < 1600
MC/DC0%0/2
$time >= 1200 and $time < 1600
$time >= 1200
$time < 1600
Truth table0%0/3
A and B
A= $time >= 1200B= $time < 1600
| |||||||||||||||||||||||||||||
| 270 | && $time < 1600; | ||||||||||||||||||||||||||||
| 271 | 0 | ▶ | return 'evening1' if $time >= 1600 | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition0%0/3
$time >= 1600 and $time < 2100
MC/DC0%0/2
$time >= 1600 and $time < 2100
$time >= 1600
$time < 2100
Truth table0%0/3
A and B
A= $time >= 1600B= $time < 2100
| |||||||||||||||||||||||||||||
| 272 | && $time < 2100; | ||||||||||||||||||||||||||||
| 273 | 0 | ▶ | return 'morning1' if $time >= 400 | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition0%0/3
$time >= 400 and $time < 1200
MC/DC0%0/2
$time >= 400 and $time < 1200
$time >= 400
$time < 1200
Truth table0%0/3
A and B
A= $time >= 400B= $time < 1200
| |||||||||||||||||||||||||||||
| 274 | && $time < 1200; | ||||||||||||||||||||||||||||
| 275 | 0 | ▶ | return 'night1' if $time >= 2100; | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 276 | 0 | ▶ | return 'night1' if $time < 400; | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 277 | } | ||||||||||||||||||||||||||||
| 278 | 0 | last SWITCH; | |||||||||||||||||||||||||||
| 279 | } | ||||||||||||||||||||||||||||
| 280 | 0 | ▶ | if ($_ eq 'gregorian') { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 281 | 0 | ▶ | if($day_period_type eq 'default') { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 282 | 0 | ▶ | return 'midnight' if $time == 0; | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 283 | 0 | ▶ | return 'afternoon1' if $time >= 1200 | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition0%0/3
$time >= 1200 and $time < 1600
MC/DC0%0/2
$time >= 1200 and $time < 1600
$time >= 1200
$time < 1600
Truth table0%0/3
A and B
A= $time >= 1200B= $time < 1600
| |||||||||||||||||||||||||||||
| 284 | && $time < 1600; | ||||||||||||||||||||||||||||
| 285 | 0 | ▶ | return 'evening1' if $time >= 1600 | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition0%0/3
$time >= 1600 and $time < 2100
MC/DC0%0/2
$time >= 1600 and $time < 2100
$time >= 1600
$time < 2100
Truth table0%0/3
A and B
A= $time >= 1600B= $time < 2100
| |||||||||||||||||||||||||||||
| 286 | && $time < 2100; | ||||||||||||||||||||||||||||
| 287 | 0 | ▶ | return 'morning1' if $time >= 400 | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition0%0/3
$time >= 400 and $time < 1200
MC/DC0%0/2
$time >= 400 and $time < 1200
$time >= 400
$time < 1200
Truth table0%0/3
A and B
A= $time >= 400B= $time < 1200
| |||||||||||||||||||||||||||||
| 288 | && $time < 1200; | ||||||||||||||||||||||||||||
| 289 | 0 | ▶ | return 'night1' if $time >= 2100; | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 290 | 0 | ▶ | return 'night1' if $time < 400; | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 291 | } | ||||||||||||||||||||||||||||
| 292 | 0 | ▶ | if($day_period_type eq 'selection') { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 293 | 0 | ▶ | return 'afternoon1' if $time >= 1200 | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition0%0/3
$time >= 1200 and $time < 1600
MC/DC0%0/2
$time >= 1200 and $time < 1600
$time >= 1200
$time < 1600
Truth table0%0/3
A and B
A= $time >= 1200B= $time < 1600
| |||||||||||||||||||||||||||||
| 294 | && $time < 1600; | ||||||||||||||||||||||||||||
| 295 | 0 | ▶ | return 'evening1' if $time >= 1600 | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition0%0/3
$time >= 1600 and $time < 2100
MC/DC0%0/2
$time >= 1600 and $time < 2100
$time >= 1600
$time < 2100
Truth table0%0/3
A and B
A= $time >= 1600B= $time < 2100
| |||||||||||||||||||||||||||||
| 296 | && $time < 2100; | ||||||||||||||||||||||||||||
| 297 | 0 | ▶ | return 'morning1' if $time >= 400 | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition0%0/3
$time >= 400 and $time < 1200
MC/DC0%0/2
$time >= 400 and $time < 1200
$time >= 400
$time < 1200
Truth table0%0/3
A and B
A= $time >= 400B= $time < 1200
| |||||||||||||||||||||||||||||
| 298 | && $time < 1200; | ||||||||||||||||||||||||||||
| 299 | 0 | ▶ | return 'night1' if $time >= 2100; | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 300 | 0 | ▶ | return 'night1' if $time < 400; | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 301 | } | ||||||||||||||||||||||||||||
| 302 | 0 | last SWITCH; | |||||||||||||||||||||||||||
| 303 | } | ||||||||||||||||||||||||||||
| 304 | } | ||||||||||||||||||||||||||||
| 305 | 0 | } }, | |||||||||||||||||||||||||||
| 306 | 1 | ); | |||||||||||||||||||||||||||
| 307 | |||||||||||||||||||||||||||||
| 308 | 0 | ▶ | around day_period_data => sub { | ||||||||||||||||||||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||||||||||||||||||||
| 309 | 0 | my ($orig, $self) = @_; | |||||||||||||||||||||||||||
| 310 | 0 | return $self->$orig; | |||||||||||||||||||||||||||
| 311 | 1 | }; | |||||||||||||||||||||||||||
| 312 | |||||||||||||||||||||||||||||
| 313 | has 'eras' => ( | ||||||||||||||||||||||||||||
| 314 | is => 'ro', | ||||||||||||||||||||||||||||
| 315 | isa => HashRef, | ||||||||||||||||||||||||||||
| 316 | init_arg => undef, | ||||||||||||||||||||||||||||
| 317 | 0 | ▶ | default => sub { { | ||||||||||||||||||||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||||||||||||||||||||
| 318 | 0 | 'generic' => { | |||||||||||||||||||||||||||
| 319 | }, | ||||||||||||||||||||||||||||
| 320 | 'gregorian' => { | ||||||||||||||||||||||||||||
| 321 | abbreviated => { | ||||||||||||||||||||||||||||
| 322 | '0' => 'ايساپورو', | ||||||||||||||||||||||||||||
| 323 | '1' => 'سں' | ||||||||||||||||||||||||||||
| 324 | }, | ||||||||||||||||||||||||||||
| 325 | }, | ||||||||||||||||||||||||||||
| 326 | } }, | ||||||||||||||||||||||||||||
| 327 | 1 | ); | |||||||||||||||||||||||||||
| 328 | |||||||||||||||||||||||||||||
| 329 | has 'date_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 | 'generic' => { | |||||||||||||||||||||||||||
| 335 | 'full' => q{EEEE, dd MMMM y G}, | ||||||||||||||||||||||||||||
| 336 | 'long' => q{d MMMM y G}, | ||||||||||||||||||||||||||||
| 337 | 'medium' => q{d MMM y G}, | ||||||||||||||||||||||||||||
| 338 | 'short' => q{dd/MM/y GGGGG}, | ||||||||||||||||||||||||||||
| 339 | }, | ||||||||||||||||||||||||||||
| 340 | 'gregorian' => { | ||||||||||||||||||||||||||||
| 341 | 'full' => q{EEEE, dd MMMM y}, | ||||||||||||||||||||||||||||
| 342 | 'long' => q{d MMMM y}, | ||||||||||||||||||||||||||||
| 343 | 'medium' => q{d MMM y}, | ||||||||||||||||||||||||||||
| 344 | 'short' => q{dd/MM/y}, | ||||||||||||||||||||||||||||
| 345 | }, | ||||||||||||||||||||||||||||
| 346 | } }, | ||||||||||||||||||||||||||||
| 347 | 1 | ); | |||||||||||||||||||||||||||
| 348 | |||||||||||||||||||||||||||||
| 349 | has 'time_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 | 'generic' => { | |||||||||||||||||||||||||||
| 355 | }, | ||||||||||||||||||||||||||||
| 356 | 'gregorian' => { | ||||||||||||||||||||||||||||
| 357 | 'full' => q{h:mm:ss a zzzz}, | ||||||||||||||||||||||||||||
| 358 | 'long' => q{h:mm:ss a z}, | ||||||||||||||||||||||||||||
| 359 | 'medium' => q{h:mm:ss a}, | ||||||||||||||||||||||||||||
| 360 | 'short' => q{h:mm a}, | ||||||||||||||||||||||||||||
| 361 | }, | ||||||||||||||||||||||||||||
| 362 | } }, | ||||||||||||||||||||||||||||
| 363 | 1 | ); | |||||||||||||||||||||||||||
| 364 | |||||||||||||||||||||||||||||
| 365 | has 'datetime_formats' => ( | ||||||||||||||||||||||||||||
| 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 | 'generic' => { | |||||||||||||||||||||||||||
| 371 | }, | ||||||||||||||||||||||||||||
| 372 | 'gregorian' => { | ||||||||||||||||||||||||||||
| 373 | }, | ||||||||||||||||||||||||||||
| 374 | } }, | ||||||||||||||||||||||||||||
| 375 | 1 | ); | |||||||||||||||||||||||||||
| 376 | |||||||||||||||||||||||||||||
| 377 | has 'datetime_formats_available_formats' => ( | ||||||||||||||||||||||||||||
| 378 | is => 'ro', | ||||||||||||||||||||||||||||
| 379 | isa => HashRef, | ||||||||||||||||||||||||||||
| 380 | init_arg => undef, | ||||||||||||||||||||||||||||
| 381 | 0 | ▶ | default => sub { { | ||||||||||||||||||||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||||||||||||||||||||
| 382 | 0 | 'generic' => { | |||||||||||||||||||||||||||
| 383 | HHmmss => q{HH:mm:ss}, | ||||||||||||||||||||||||||||
| 384 | Md => q{d/M}, | ||||||||||||||||||||||||||||
| 385 | yMMM => q{MMM y}, | ||||||||||||||||||||||||||||
| 386 | yQQQ => q{QQQ y}, | ||||||||||||||||||||||||||||
| 387 | }, | ||||||||||||||||||||||||||||
| 388 | 'gregorian' => { | ||||||||||||||||||||||||||||
| 389 | HHmmss => q{HH:mm:ss}, | ||||||||||||||||||||||||||||
| 390 | Md => q{d/M}, | ||||||||||||||||||||||||||||
| 391 | mmss => q{mm:ss}, | ||||||||||||||||||||||||||||
| 392 | yMMM => q{MMM y}, | ||||||||||||||||||||||||||||
| 393 | yQQQ => q{QQQ y}, | ||||||||||||||||||||||||||||
| 394 | }, | ||||||||||||||||||||||||||||
| 395 | } }, | ||||||||||||||||||||||||||||
| 396 | 1 | ); | |||||||||||||||||||||||||||
| 397 | |||||||||||||||||||||||||||||
| 398 | has 'datetime_formats_append_item' => ( | ||||||||||||||||||||||||||||
| 399 | is => 'ro', | ||||||||||||||||||||||||||||
| 400 | isa => HashRef, | ||||||||||||||||||||||||||||
| 401 | init_arg => undef, | ||||||||||||||||||||||||||||
| 402 | 0 | ▶ | default => sub { { | ||||||||||||||||||||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||||||||||||||||||||
| 403 | 0 | } }, | |||||||||||||||||||||||||||
| 404 | 1 | ); | |||||||||||||||||||||||||||
| 405 | |||||||||||||||||||||||||||||
| 406 | has 'datetime_formats_interval' => ( | ||||||||||||||||||||||||||||
| 407 | is => 'ro', | ||||||||||||||||||||||||||||
| 408 | isa => HashRef, | ||||||||||||||||||||||||||||
| 409 | init_arg => undef, | ||||||||||||||||||||||||||||
| 410 | 0 | ▶ | default => sub { { | ||||||||||||||||||||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||||||||||||||||||||
| 411 | 0 | } }, | |||||||||||||||||||||||||||
| 412 | 1 | ); | |||||||||||||||||||||||||||
| 413 | |||||||||||||||||||||||||||||
| 414 | 1 | ▶ | no Moo; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 415 | |||||||||||||||||||||||||||||
| 416 | 1 | 1; | |||||||||||||||||||||||||||
| 417 | |||||||||||||||||||||||||||||
| 418 | # vim: tabstop=4 | ||||||||||||||||||||||||||||