lib/CP932IBM/R2.pm

filter: Statementstmt 100% 42 / 42 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 9 / 9 Podpod n/a totaltotal 98.1% 52 / 53 CC 2 SCAR 1.8
CC
2
Cov
98%
BEGIN
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
↑ Summary
1 package CP932IBM::R2;
2 ######################################################################
3 #
4 # CP932IBM::R2 - provides minimal CP932IBM I/O subroutines by short name
5 #
6 # http://search.cpan.org/dist/CP932IBM-R2/
7 #
8 # Copyright (c) 2019, 2021 INABA Hitoshi <ina@cpan.org> in a CPAN
9 ######################################################################
10  
11 12 ▶use 5.00503; # Universal Consensus 1998 for primetools
Subroutine BEGIN: called CC=1 SCAR=0.0
12 # use 5.008001; # Lancaster Consensus 2013 for toolchains
13  
14 12 $VERSION = '0.07';
15 12 $VERSION = $VERSION;
16  
17 12 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
18 12 ▶BEGIN { $INC{'warnings.pm'} = '' if $] < 5.006 }; use warnings; $^W=1;
Subroutine BEGIN: called CC=2 SCAR=7.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Branch: 1 branch
BranchTrueFalseTotal
if $] < "5.006" 0 12 12
19 12 ▶use UTF8::R2;
Subroutine BEGIN: called CC=1 SCAR=0.0
20 12 ▶use IOas::CP932IBM;
Subroutine BEGIN: called CC=1 SCAR=0.0
21  
22 12 ▶sub import {
Subroutine import: called CC=1 SCAR=0.0
23 12 ▶ no strict qw(refs);
Subroutine BEGIN: called CC=1 SCAR=0.0
24 12 tie my %mb, 'UTF8::R2';
25 12 *{caller().'::mb'} = \%mb;
26 12 ▶ *{caller().'::mbeach'} = sub { UTF8::R2::split(qr//,$_[0]) };
Subroutine __ANON__: called CC=1 SCAR=0.0
27 12 *{caller().'::mbtr' } = \&UTF8::R2::tr;
28 12 *{caller().'::iolen' } = \&IOas::CP932IBM::length;
29 12 *{caller().'::iomid' } = \&IOas::CP932IBM::substr;
30 12 *{caller().'::ioget' } = \&IOas::CP932IBM::readline;
31 12 *{caller().'::ioput' } = \&IOas::CP932IBM::print;
32 12 *{caller().'::ioputf'} = \&IOas::CP932IBM::printf;
33 12 *{caller().'::iosort'} = \&IOas::CP932IBM::sort;
34 }
35  
36 12 1;
37  
38 __END__
↑ Summary