line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
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 in a CPAN |
9
|
|
|
|
|
|
|
###################################################################### |
10
|
|
|
|
|
|
|
|
11
|
12
|
|
|
12
|
|
44852
|
use 5.00503; # Universal Consensus 1998 for primetools |
|
12
|
|
|
|
|
126
|
|
12
|
|
|
|
|
|
|
# use 5.008001; # Lancaster Consensus 2013 for toolchains |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
$VERSION = '0.06'; |
15
|
|
|
|
|
|
|
$VERSION = $VERSION; |
16
|
|
|
|
|
|
|
|
17
|
12
|
|
|
12
|
|
73
|
use strict; |
|
12
|
|
|
|
|
24
|
|
|
12
|
|
|
|
|
371
|
|
18
|
12
|
50
|
|
12
|
|
213
|
BEGIN { $INC{'warnings.pm'} = '' if $] < 5.006 }; use warnings; $^W=1; |
|
12
|
|
|
12
|
|
84
|
|
|
12
|
|
|
|
|
37
|
|
|
12
|
|
|
|
|
589
|
|
19
|
12
|
|
|
12
|
|
7529
|
use UTF8::R2; |
|
12
|
|
|
|
|
97773
|
|
|
12
|
|
|
|
|
90
|
|
20
|
12
|
|
|
12
|
|
6554
|
use IOas::CP932IBM; |
|
12
|
|
|
|
|
28526576
|
|
|
12
|
|
|
|
|
86
|
|
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
sub import { |
23
|
12
|
|
|
12
|
|
587
|
no strict qw(refs); |
|
12
|
|
|
|
|
23
|
|
|
12
|
|
|
|
|
2169
|
|
24
|
12
|
|
|
12
|
|
186
|
tie my %mb, 'UTF8::R2'; |
25
|
12
|
|
|
|
|
72
|
*{caller().'::mb'} = \%mb; |
|
12
|
|
|
|
|
84
|
|
26
|
12
|
|
|
16
|
|
47
|
*{caller().'::mbeach'} = sub { UTF8::R2::split(qr//,$_[0]) }; |
|
12
|
|
|
|
|
63
|
|
|
16
|
|
|
|
|
986
|
|
27
|
12
|
|
|
|
|
30
|
*{caller().'::mbtr' } = \&UTF8::R2::tr; |
|
12
|
|
|
|
|
41
|
|
28
|
12
|
|
|
|
|
24
|
*{caller().'::iolen' } = \&IOas::CP932IBM::length; |
|
12
|
|
|
|
|
37
|
|
29
|
12
|
|
|
|
|
25
|
*{caller().'::iomid' } = \&IOas::CP932IBM::substr; |
|
12
|
|
|
|
|
38
|
|
30
|
12
|
|
|
|
|
20
|
*{caller().'::ioget' } = \&IOas::CP932IBM::readline; |
|
12
|
|
|
|
|
35
|
|
31
|
12
|
|
|
|
|
26
|
*{caller().'::ioput' } = \&IOas::CP932IBM::print; |
|
12
|
|
|
|
|
35
|
|
32
|
12
|
|
|
|
|
22
|
*{caller().'::ioputf'} = \&IOas::CP932IBM::printf; |
|
12
|
|
|
|
|
40
|
|
33
|
12
|
|
|
|
|
21
|
*{caller().'::iosort'} = \&IOas::CP932IBM::sort; |
|
12
|
|
|
|
|
345
|
|
34
|
|
|
|
|
|
|
} |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
1; |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
__END__ |