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
|
|
37734
|
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
|
|
64
|
use strict; |
|
12
|
|
|
|
|
18
|
|
|
12
|
|
|
|
|
392
|
|
18
|
12
|
50
|
|
12
|
|
231
|
BEGIN { $INC{'warnings.pm'} = '' if $] < 5.006 }; use warnings; $^W=1; |
|
12
|
|
|
12
|
|
84
|
|
|
12
|
|
|
|
|
36
|
|
|
12
|
|
|
|
|
557
|
|
19
|
12
|
|
|
12
|
|
6853
|
use UTF8::R2; |
|
12
|
|
|
|
|
92136
|
|
|
12
|
|
|
|
|
74
|
|
20
|
12
|
|
|
12
|
|
6037
|
use IOas::CP932IBM; |
|
12
|
|
|
|
|
29046445
|
|
|
12
|
|
|
|
|
84
|
|
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
sub import { |
23
|
12
|
|
|
12
|
|
608
|
no strict qw(refs); |
|
12
|
|
|
|
|
25
|
|
|
12
|
|
|
|
|
2347
|
|
24
|
12
|
|
|
12
|
|
185
|
tie my %mb, 'UTF8::R2'; |
25
|
12
|
|
|
|
|
77
|
*{caller().'::mb'} = \%mb; |
|
12
|
|
|
|
|
88
|
|
26
|
12
|
|
|
16
|
|
46
|
*{caller().'::mbeach'} = sub { UTF8::R2::split(qr//,$_[0]) }; |
|
12
|
|
|
|
|
62
|
|
|
16
|
|
|
|
|
1049
|
|
27
|
12
|
|
|
|
|
34
|
*{caller().'::mbtr' } = \&UTF8::R2::tr; |
|
12
|
|
|
|
|
40
|
|
28
|
12
|
|
|
|
|
23
|
*{caller().'::iolen' } = \&IOas::CP932IBM::length; |
|
12
|
|
|
|
|
42
|
|
29
|
12
|
|
|
|
|
27
|
*{caller().'::iomid' } = \&IOas::CP932IBM::substr; |
|
12
|
|
|
|
|
36
|
|
30
|
12
|
|
|
|
|
24
|
*{caller().'::ioget' } = \&IOas::CP932IBM::readline; |
|
12
|
|
|
|
|
39
|
|
31
|
12
|
|
|
|
|
21
|
*{caller().'::ioput' } = \&IOas::CP932IBM::print; |
|
12
|
|
|
|
|
42
|
|
32
|
12
|
|
|
|
|
24
|
*{caller().'::ioputf'} = \&IOas::CP932IBM::printf; |
|
12
|
|
|
|
|
39
|
|
33
|
12
|
|
|
|
|
24
|
*{caller().'::iosort'} = \&IOas::CP932IBM::sort; |
|
12
|
|
|
|
|
347
|
|
34
|
|
|
|
|
|
|
} |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
1; |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
__END__ |