line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package CP932X::R2; |
2
|
|
|
|
|
|
|
###################################################################### |
3
|
|
|
|
|
|
|
# |
4
|
|
|
|
|
|
|
# CP932X::R2 - provides minimal CP932X I/O subroutines by short name |
5
|
|
|
|
|
|
|
# |
6
|
|
|
|
|
|
|
# http://search.cpan.org/dist/CP932X-R2/ |
7
|
|
|
|
|
|
|
# |
8
|
|
|
|
|
|
|
# Copyright (c) 2019 INABA Hitoshi in a CPAN |
9
|
|
|
|
|
|
|
###################################################################### |
10
|
|
|
|
|
|
|
|
11
|
12
|
|
|
12
|
|
41781
|
use 5.00503; # Galapagos Consensus 1998 for primetools |
|
12
|
|
|
|
|
114
|
|
12
|
|
|
|
|
|
|
# use 5.008001; # Lancaster Consensus 2013 for toolchains |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
$VERSION = '0.05'; |
15
|
|
|
|
|
|
|
$VERSION = $VERSION; |
16
|
|
|
|
|
|
|
|
17
|
12
|
|
|
12
|
|
70
|
use strict; |
|
12
|
|
|
|
|
24
|
|
|
12
|
|
|
|
|
460
|
|
18
|
12
|
50
|
|
12
|
|
263
|
BEGIN { $INC{'warnings.pm'} = '' if $] < 5.006 }; use warnings; $^W=1; |
|
12
|
|
|
12
|
|
97
|
|
|
12
|
|
|
|
|
41
|
|
|
12
|
|
|
|
|
663
|
|
19
|
12
|
|
|
12
|
|
6629
|
use UTF8::R2; |
|
12
|
|
|
|
|
74290
|
|
|
12
|
|
|
|
|
76
|
|
20
|
12
|
|
|
12
|
|
6512
|
use IOas::CP932X; |
|
12
|
|
|
|
|
34672875
|
|
|
12
|
|
|
|
|
121
|
|
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
sub import { |
23
|
12
|
|
|
12
|
|
1137
|
no strict qw(refs); |
|
12
|
|
|
|
|
27
|
|
|
12
|
|
|
|
|
3614
|
|
24
|
12
|
|
|
12
|
|
202
|
tie my %mb, 'UTF8::R2'; |
25
|
12
|
|
|
|
|
86
|
*{caller().'::mb'} = \%mb; |
|
12
|
|
|
|
|
147
|
|
26
|
12
|
|
|
16
|
|
57
|
*{caller().'::mbeach'} = sub { UTF8::R2::split(qr//,$_[0]) }; |
|
12
|
|
|
|
|
79
|
|
|
16
|
|
|
|
|
1206
|
|
27
|
12
|
|
|
|
|
34
|
*{caller().'::mbtr' } = \&UTF8::R2::tr; |
|
12
|
|
|
|
|
53
|
|
28
|
12
|
|
|
|
|
29
|
*{caller().'::iolen' } = \&IOas::CP932X::length; |
|
12
|
|
|
|
|
48
|
|
29
|
12
|
|
|
|
|
28
|
*{caller().'::iomid' } = \&IOas::CP932X::substr; |
|
12
|
|
|
|
|
46
|
|
30
|
12
|
|
|
|
|
29
|
*{caller().'::ioget' } = \&IOas::CP932X::readline; |
|
12
|
|
|
|
|
51
|
|
31
|
12
|
|
|
|
|
26
|
*{caller().'::ioput' } = \&IOas::CP932X::print; |
|
12
|
|
|
|
|
43
|
|
32
|
12
|
|
|
|
|
27
|
*{caller().'::ioputf'} = \&IOas::CP932X::printf; |
|
12
|
|
|
|
|
48
|
|
33
|
12
|
|
|
|
|
30
|
*{caller().'::iosort'} = \&IOas::CP932X::sort; |
|
12
|
|
|
|
|
434
|
|
34
|
|
|
|
|
|
|
} |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
1; |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
__END__ |