line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package CP932NEC::R2; |
2
|
|
|
|
|
|
|
###################################################################### |
3
|
|
|
|
|
|
|
# |
4
|
|
|
|
|
|
|
# CP932NEC::R2 - provides minimal CP932NEC I/O subroutines by short name |
5
|
|
|
|
|
|
|
# |
6
|
|
|
|
|
|
|
# http://search.cpan.org/dist/CP932NEC-R2/ |
7
|
|
|
|
|
|
|
# |
8
|
|
|
|
|
|
|
# Copyright (c) 2019, 2021 INABA Hitoshi in a CPAN |
9
|
|
|
|
|
|
|
###################################################################### |
10
|
|
|
|
|
|
|
|
11
|
12
|
|
|
12
|
|
39441
|
use 5.00503; # Universal Consensus 1998 for primetools |
|
12
|
|
|
|
|
106
|
|
12
|
|
|
|
|
|
|
# use 5.008001; # Lancaster Consensus 2013 for toolchains |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
$VERSION = '0.07'; |
15
|
|
|
|
|
|
|
$VERSION = $VERSION; |
16
|
|
|
|
|
|
|
|
17
|
12
|
|
|
12
|
|
65
|
use strict; |
|
12
|
|
|
|
|
22
|
|
|
12
|
|
|
|
|
389
|
|
18
|
12
|
50
|
|
12
|
|
243
|
BEGIN { $INC{'warnings.pm'} = '' if $] < 5.006 }; use warnings; $^W=1; |
|
12
|
|
|
12
|
|
79
|
|
|
12
|
|
|
|
|
36
|
|
|
12
|
|
|
|
|
1065
|
|
19
|
12
|
|
|
12
|
|
6812
|
use UTF8::R2; |
|
12
|
|
|
|
|
92915
|
|
|
12
|
|
|
|
|
81
|
|
20
|
12
|
|
|
12
|
|
6124
|
use IOas::CP932NEC; |
|
12
|
|
|
|
|
28782964
|
|
|
12
|
|
|
|
|
86
|
|
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
sub import { |
23
|
12
|
|
|
12
|
|
583
|
no strict qw(refs); |
|
12
|
|
|
|
|
24
|
|
|
12
|
|
|
|
|
2153
|
|
24
|
12
|
|
|
12
|
|
179
|
tie my %mb, 'UTF8::R2'; |
25
|
12
|
|
|
|
|
70
|
*{caller().'::mb'} = \%mb; |
|
12
|
|
|
|
|
86
|
|
26
|
12
|
|
|
16
|
|
44
|
*{caller().'::mbeach'} = sub { UTF8::R2::split(qr//,$_[0]) }; |
|
12
|
|
|
|
|
62
|
|
|
16
|
|
|
|
|
976
|
|
27
|
12
|
|
|
|
|
28
|
*{caller().'::mbtr' } = \&UTF8::R2::tr; |
|
12
|
|
|
|
|
43
|
|
28
|
12
|
|
|
|
|
24
|
*{caller().'::iolen' } = \&IOas::CP932NEC::length; |
|
12
|
|
|
|
|
40
|
|
29
|
12
|
|
|
|
|
24
|
*{caller().'::iomid' } = \&IOas::CP932NEC::substr; |
|
12
|
|
|
|
|
38
|
|
30
|
12
|
|
|
|
|
22
|
*{caller().'::ioget' } = \&IOas::CP932NEC::readline; |
|
12
|
|
|
|
|
38
|
|
31
|
12
|
|
|
|
|
23
|
*{caller().'::ioput' } = \&IOas::CP932NEC::print; |
|
12
|
|
|
|
|
37
|
|
32
|
12
|
|
|
|
|
23
|
*{caller().'::ioputf'} = \&IOas::CP932NEC::printf; |
|
12
|
|
|
|
|
37
|
|
33
|
12
|
|
|
|
|
24
|
*{caller().'::iosort'} = \&IOas::CP932NEC::sort; |
|
12
|
|
|
|
|
353
|
|
34
|
|
|
|
|
|
|
} |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
1; |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
__END__ |