Branch Coverage

Char/Ewindows1252.pm
Criterion Covered Total %
branch 4 562 0.7


line true false branch
26 0 177 if ($^X =~ / jperl /imosx)
49 0 177 if ($@)
76 0 0 if (not ref $name and &index($name, '::') == -1 and &index($name, q[']) == -1)
81 0 0 if ($name =~ /^(([^a-z])|(\^[a-z_]+))\z/i or $global{$name}) { }
87 0 0 @_ > 1 ? :
98 0 0 @_ > 1 ? :
109 177 0 if (eval { do { local $@; CORE::require strict } })
294 0 0 if ($^O =~ /\A (?: MSWin32 | NetWare | symbian | dos ) \z/mosx)
299 0 0 if (/\A (?:$Char::Ewindows1252::q_char)*? [ ] /mosx) { }
0 0 elsif (/\A (?:$Char::Ewindows1252::q_char)*? [*?] /mosx) { }
300 0 0 if (my(@glob) = glob(qq["$_"])) { }
310 0 0 if (my(@glob) = glob $_) { }
506 0 0 unless (defined $pattern)
511 0 0 unless (defined $string)
512 0 0 if (defined $_) { }
523 0 0 if ($string eq '') { }
0 0 elsif ($pattern eq ' ') { }
526 0 0 if (wantarray) { }
532 0 0 if $^W
550 0 0 if (not defined $limit) { }
559 0 0 if (not defined $limit or $limit <= 0) { }
0 0 elsif ($limit > 0) { }
566 0 0 if ('' =~ / \A $pattern \z /msx) { }
605 0 0 if ('' =~ / \A $pattern \z /msx) { }
610 0 0 if ($string =~ s/\A((?:$Char::Ewindows1252::q_char)+?)$pattern//m)
623 0 0 if ($string =~ s/\A((?:$Char::Ewindows1252::q_char)*?)$pattern//m)
633 0 0 if (length $string > 0)
638 0 0 if (not defined $_[2] or $_[2] == 0)
645 0 0 if (wantarray) { }
651 0 0 if $^W
667 0 0 if ($pattern =~ /\(\?\^? ([\-A-Za-z]+) :/mosx)
674 0 0 if ($modifier =~ /x/mosx) { }
707 0 0 if ($modifier =~ /r/mosx)
708 0 0 if ($bind_operator =~ / !~ /mosx)
719 0 0 unless (exists $tr{$searchlist[$i]})
720 0 0 if (defined $replacementlist[$i] and $replacementlist[$i] ne '') { }
0 0 elsif ($modifier =~ /d/mosx) { }
0 0 elsif (defined $replacementlist[-1] and $replacementlist[-1] ne '') { }
737 0 0 if ($modifier =~ /c/mosx) { }
739 0 0 if (not exists $tr{$char}) { }
740 0 0 if (defined $replacementlist[0])
744 0 0 if ($modifier =~ /s/mosx)
758 0 0 if (exists $tr{$char}) { }
761 0 0 if ($modifier =~ /s/mosx)
774 0 0 if ($modifier =~ /r/mosx) { }
779 0 0 if ($bind_operator =~ / !~ /mosx) { }
794 0 0 if (@_ == 0) { }
819 0 0 if (substr($str, $pos, length $substr) eq $substr)
820 0 0 if ($pos >= $position)
824 0 0 if (substr($str, $pos) =~ /\A ($Char::Ewindows1252::q_char) /mosx) { }
845 0 0 if (substr($str, $pos, length $substr) eq $substr)
848 0 0 if (substr($str, $pos) =~ /\A ($Char::Ewindows1252::q_char) /mosx) { }
862 0 0 if (@_) { }
864 0 0 if (@_ and wantarray) { }
887 0 0 if (@_) { }
889 0 0 if (@_ and wantarray) { }
890 0 0 defined $lc{$_} ? :
893 0 0 defined $lc{$_} ? :
906 0 0 defined $lc{$_} ? :
913 0 0 if (@_) { }
915 0 0 if (@_ and wantarray) { }
938 0 0 if (@_) { }
940 0 0 if (@_ and wantarray) { }
941 0 0 defined $uc{$_} ? :
944 0 0 defined $uc{$_} ? :
957 0 0 defined $uc{$_} ? :
964 0 0 if (@_) { }
966 0 0 if (@_ and wantarray) { }
967 0 0 defined $fc{$_} ? :
970 0 0 defined $fc{$_} ? :
983 0 0 defined $fc{$_} ? :
1014 0 0 unless defined $char[$i]
1017 0 0 if ($char[$i] eq '[') { }
0 0 elsif ($char[$i] eq '[^') { }
0 0 elsif (my $char = classic_character_class($char[$i])) { }
0 0 elsif ($char[$i] =~ /\A [\x00-\xFF] \z/mosx) { }
1022 0 0 if ($char[$i + 1] eq ']')
1027 0 0 if (++$i > $#char)
1030 0 0 if ($char[$i] eq ']')
1036 0 0 if (do { $char =~ /\A [.|)] \z/mosx })
1059 0 0 if ($char[$i + 1] eq ']')
1064 0 0 if (++$i > $#char)
1067 0 0 if ($char[$i] eq ']')
1073 0 0 if (do { $char =~ /\A [.|)] \z/mosx })
1099 0 0 if ($uc ne $fc)
1100 0 0 if (length $fc == 1) { }
1112 0 0 unless defined $char[$i]
1114 0 0 if (do { $char[$i] =~ /\A [\?\+\*\{] \z/mosx if $i >= 1 })
1118 0 0 if $i >= 1
1119 0 0 unless ($char[$i - 1] =~ /\A [\x00-\xFF] \z/mosx)
1223 0 0 if (@chars1)
1226 0 0 if (exists $range_tr{1})
1240 0 0 if (@chars2)
1243 0 0 if (exists $range_tr{2})
1259 0 0 if (@chars3)
1262 0 0 if (exists $range_tr{3})
1280 0 0 if (@chars4)
1283 0 0 if (exists $range_tr{4})
1310 0 0 if (/\G (\\0?55|\\x2[Dd]|\\-) /cgmosx) { }
0 0 elsif (/\G \\ ([0-7]{2,3}) /cgmosx) { }
0 0 elsif (/\G \\x ([0-9A-Fa-f]{1,2}) /cgmosx) { }
0 0 elsif (/\G \\c ([\x40-\x5F]) /cgmosx) { }
0 0 elsif (/\G (\\ [0nrtfbae]) /cgmosx) { }
0 0 elsif (/\G \\ ($Char::Ewindows1252::q_char) /cgmosx) { }
0 0 elsif (/\G ($Char::Ewindows1252::q_char) /cgmosx) { }
1348 0 0 if ($char[$i] eq '\\-') { }
0 0 elsif ($char[$i] eq '-') { }
1352 0 0 if (0 < $i and $i < $#char)
1363 0 0 if (length $char[$i - 1] > length $char[$i + 1] or $char[$i - 1] gt $char[$i + 1])
1368 0 0 if (length $char[$i - 1] == 1) { }
0 0 elsif (length $char[$i - 1] == 2) { }
0 0 elsif (length $char[$i - 1] == 3) { }
0 0 elsif (length $char[$i - 1] == 4) { }
1369 0 0 if (length $char[$i + 1] == 1) { }
0 0 elsif (length $char[$i + 1] == 2) { }
0 0 elsif (length $char[$i + 1] == 3) { }
0 0 elsif (length $char[$i + 1] == 4) { }
1370 0 0 if $char[$i - 1] le $_
1392 0 0 if (length $char[$i + 1] == 2) { }
0 0 elsif (length $char[$i + 1] == 3) { }
0 0 elsif (length $char[$i + 1] == 4) { }
1393 0 0 if $char[$i - 1] le $_
1409 0 0 if (length $char[$i + 1] == 3) { }
0 0 elsif (length $char[$i + 1] == 4) { }
1410 0 0 if $char[$i - 1] le $_
1421 0 0 if (length $char[$i + 1] == 4) { }
1422 0 0 if $char[$i - 1] le $_
1442 0 0 if (scalar @_ == 0) { }
0 0 elsif (scalar @_ == 1) { }
0 0 elsif (scalar @_ == 2) { }
1449 0 0 if ($_[0] > $_[1]) { }
0 0 elsif ($_[0] == $_[1]) { }
0 0 elsif ($_[0] + 1 == $_[1]) { }
1473 0 0 if ($length == 1) { }
1477 0 0 if ($a1 > $z1)
1481 0 0 if ($a1 == $z1) { }
0 0 elsif ($a1 + 1 == $z1) { }
1503 0 0 unless (exists $range_tr{$length})
1520 0 0 if ($max lt $first) { }
0 0 elsif ($min le $first and $first le $max and $max le $last) { }
0 0 elsif ($min eq $first and $max eq $last) { }
0 0 elsif ($first le $min and $max le $last) { }
0 0 elsif ($min le $first and $last le $max) { }
0 0 elsif ($first le $min and $min le $last and $last le $max) { }
0 0 elsif ($last lt $min) { }
1591 0 0 $modifier =~ /i/mosx ? :
1597 0 0 if ($char[$i] eq '-') { }
0 0 elsif ($char[$i] =~ /\A \\o \{ ([0-7]+) \} \z/mosx) { }
0 0 elsif ($char[$i] =~ /\A \\x \{ ([0-9A-Fa-f]+) \} \z/mosx) { }
0 0 elsif ($char[$i] =~ /\A \\ (N) ( \{ ([^0-9\}][^\}]*) \} ) \z/mosx) { }
0 0 elsif ($char[$i] =~ /\A \\ (p) ( \{ ([^0-9\}][^\}]*) \} ) \z/mosx) { }
0 0 elsif ($char[$i] =~ /\A \\ (P) ( \{ ([^0-9\}][^\}]*) \} ) \z/mosx) { }
0 0 elsif ($char[$i] =~ /\A \\ ( [pPX] ) \z/mosx) { }
0 0 elsif ($char[$i] =~ /\A \\ ([0-7]{2,3}) \z/mosx) { }
0 0 elsif ($char[$i] =~ /\A \\x ([0-9A-Fa-f]{1,2}) \z/mosx) { }
0 0 elsif ($char[$i] =~ /\A \\c ([\x40-\x5F]) \z/mosx) { }
0 0 elsif ($char[$i] =~ /\A (\\ [0nrtfbaedswDSWHVhvR]) \z/mosx) { }
0 0 elsif ($ignorecase and $char[$i] =~ /\A ( \[\: \^? (?:lower|upper) :\] ) \z/mosx) { }
0 0 elsif ($char[$i] =~ /\A ( \[\: \^? (?:alnum|alpha|ascii|blank|cntrl|digit|graph|lower|print|punct|space|upper|word|xdigit) :\] ) \z/mosx) { }
0 0 elsif ($char[$i] =~ /\A \\ ($Char::Ewindows1252::q_char) \z/mosx) { }
1598 0 0 if (0 < $i and $i < $#char)
1746 0 0 if (defined $char[$i + 1] and $char[$i + 1] eq '...') { }
0 0 elsif ($char[$i] eq '...') { }
0 0 elsif ($char[$i] =~ /\A [\x00-\xFF] \z/mosx) { }
0 0 elsif ($char[$i] =~ /\A (?: \\h ) \z/mosx) { }
0 0 elsif ($char[$i] =~ /\A (?: \\v ) \z/mosx) { }
0 0 elsif ($char[$i] =~ /\A (?: \\d | \\s | \\w ) \z/mosx) { }
1755 0 0 if (length $char[$i - 1] > length $char[$i + 1]) { }
0 0 elsif (length $char[$i - 1] == length $char[$i + 1]) { }
1759 0 0 if ($char[$i - 1] gt $char[$i + 1])
1769 0 0 if ($length == length $char[$i - 1] and $length == length $char[$i + 1]) { }
0 0 elsif ($length == length $char[$i - 1]) { }
0 0 elsif (length $char[$i - 1] < $length and $length < length $char[$i + 1]) { }
0 0 elsif ($length == length $char[$i + 1]) { }
1792 0 0 if ($length == 1) { }
1805 0 0 if ($modifier =~ /i/mosx) { }
1808 0 0 if ($uc ne $fc) { }
1809 0 0 if (length $fc == 1) { }
1850 0 0 if ($_ eq '...') { }
0 0 elsif (/\A \n \z/mosx) { }
0 0 elsif (/\A \r \z/mosx) { }
0 0 elsif (/\A ([\x00-\x20\x7F-\xFF]) \z/mosx) { }
0 0 elsif (/\A [\x00-\xFF] \z/mosx) { }
1936 0 0 if (scalar @singleoctet >= 1)
1939 0 0 if ($modifier =~ /i/mosx)
1947 0 0 if ($uc eq $fc) { }
1951 0 0 if (length $fc == 1) { }
1962 0 0 if ($_ ne '')
1969 0 0 if (exists $singleoctet_ignorecase{$ord}) { }
1978 0 0 if (ref $range)
1979 0 0 if (scalar @{$range;} == 1) { }
0 0 elsif (scalar @{$range;} == 2) { }
1996 0 0 if (scalar @multipleoctet >= 2) { }
2017 0 0 if ($modifier =~ /i/mosx)
2025 0 0 if ($uc eq $fc) { }
2029 0 0 if (length $fc == 1) { }
2040 0 0 if ($_ ne '')
2047 0 0 if (exists $singleoctet_ignorecase{$ord}) { }
2056 0 0 if (ref $range)
2057 0 0 if (scalar @{$range;} == 1) { }
0 0 elsif (scalar @{$range;} == 2) { }
2071 0 0 if (scalar @multipleoctet >= 1) { }
2072 0 0 if (scalar @singleoctet >= 1) { }
2084 0 0 if (scalar @singleoctet >= 1) { }
2214 0 0 @_ ? :
2216 0 0 if ($c == 0) { }
2236 0 0 if ($c == 0) { }
2254 0 0 if (wantarray) { }
2273 0 0 if (wantarray) { }
2301 0 0 unless defined $expr
2312 0 0 if ($^O =~ /\A (?: MSWin32 | NetWare | symbian | dos ) \z/mosx) { }
2320 0 0 $1 ? :
2324 0 0 unless defined $cxix
2325 0 0 unless exists $iter{$cxix}
2328 0 0 if ($iter{$cxix} == 0)
2333 0 0 if (wantarray) { }
2338 0 0 if ($iter{$cxix} = scalar @{$entries{$cxix};}) { }
2361 0 0 unless defined $expr
2362 0 0 if $expr eq ''
2371 0 0 if ($expr =~ /\A " ((?:$Char::Ewindows1252::q_char)*) " \z/mosx)
2373 0 0 if ($cond eq 'd') { }
2374 0 0 if (-d $expr)
2379 0 0 if (-e $expr)
2388 0 0 if ($^O =~ /\A (?: MSWin32 | NetWare | symbian | dos ) \z/mosx)
2389 0 0 if ($expr =~ s( \A ((?:[A-Za-z]:)?) ([^/\\]) )[$1./$2]mosx)
2394 0 0 if (($head, $tail) = _parse_path($expr, $pathsep))
2395 0 0 if ($tail eq '')
2399 0 0 if ($head =~ / \A (?:$Char::Ewindows1252::q_char)*? [*?] /mosx)
2400 0 0 if (@globdir = _do_glob('d', $head))
2405 0 0 if ($head eq '' or $head =~ /\A [A-Za-z]: \z/mosx)
2412 0 0 unless ($expr =~ / \A (?:$Char::Ewindows1252::q_char)*? [*?] /mosx)
2413 0 0 if ($head eq '.')
2416 0 0 if ($head ne '' and ($head =~ / \G ($Char::Ewindows1252::q_char) /gmosx)[-1] ne $pathsep)
2420 0 0 if ($cond eq 'd') { }
2421 0 0 if (-d $head)
2426 0 0 if (-e $head)
2432 0 0 unless opendir *DIR, $head
2436 0 0 if ($head eq '.')
2439 0 0 if ($head ne '' and ($head =~ / \G ($Char::Ewindows1252::q_char) /gmosx)[-1] ne $pathsep)
2452 0 0 if ($char eq '*') { }
0 0 elsif ($char eq '?') { }
0 0 elsif ((my $fc = fc($char)) ne $char) { }
2475 0 0 if ($leaf eq '.' or $leaf eq '..')
2478 0 0 if ($cond eq 'd' and not -d "$head$leaf")
2482 0 0 if (&$matchsub($leaf))
2490 0 0 if (index($leaf, '.') == -1 and length $leaf <= 8 and index($pattern, '\\.') != -1)
2494 0 0 if (&$matchsub("$leaf."))
2500 0 0 if (@matched)
2504 0 0 if ($fix_drive_relative_paths)
2526 0 0 defined $1 ? :
2560 0 0 if (exists $ENV{'HOME'} and $ENV{'HOME'}) { }
0 0 elsif (exists $ENV{'USERPROFILE'} and $ENV{'USERPROFILE'}) { }
0 0 elsif (exists $ENV{'HOMEDRIVE'} and exists $ENV{'HOMEPATH'} and $ENV{'HOMEDRIVE'} and $ENV{'HOMEPATH'}) { }
2583 0 0 if (exists $ENV{'HOME'} and defined $ENV{'HOME'}) { }
0 0 elsif (exists $ENV{'LOGDIR'} and $ENV{'LOGDIR'}) { }
2602 0 0 if (defined $home and not -d $home)
2634 0 0 if @_
2636 0 0 if (/\A ($Char::Ewindows1252::q_char) /mosx) { }
2654 0 0 if (/\A ($Char::Ewindows1252::q_char) /mosx) { }
2672 0 0 if (wantarray) { }
2692 0 0 @_ ? :
2693 0 0 if @_ and not wantarray
2699 0 0 if (exists $range_tr{length $getc})
2700 0 0 if ($getc =~ /\A $Char::Ewindows1252::dot_s \z/mosx)
2701 0 0 wantarray ? :
2705 0 0 wantarray ? :
2713 0 0 if @_
2736 177 0 $] >= 5.014 ? :
0 0 if ($offset > scalar @char or $offset < -1 * scalar(@char))
0 0 if ($offset == 0) { }
0 0 elsif ($offset > 0) { }
0 0 if ($length == 0) { }
0 0 elsif ($length > 0) { }
0 0 if ($offset == 0) { }
0 0 elsif ($offset > 0) { }
0 0 if (@_ == 4) { }
0 0 elsif (@_ == 3) { }
2816 0 0 if (@_ == 3) { }
2823 0 0 if ($index == -1) { }
2837 0 0 if (@_ == 3) { }
2844 0 0 if ($rindex == -1) { }