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 INABA Hitoshi in a CPAN |
9
|
|
|
|
|
|
|
###################################################################### |
10
|
|
|
|
|
|
|
|
11
|
12
|
|
|
12
|
|
38872
|
use 5.00503; # Galapagos Consensus 1998 for primetools |
|
12
|
|
|
|
|
103
|
|
12
|
|
|
|
|
|
|
# use 5.008001; # Lancaster Consensus 2013 for toolchains |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
$VERSION = '0.05'; |
15
|
|
|
|
|
|
|
$VERSION = $VERSION; |
16
|
|
|
|
|
|
|
|
17
|
12
|
|
|
12
|
|
68
|
use strict; |
|
12
|
|
|
|
|
22
|
|
|
12
|
|
|
|
|
428
|
|
18
|
12
|
50
|
|
12
|
|
229
|
BEGIN { $INC{'warnings.pm'} = '' if $] < 5.006 }; use warnings; $^W=1; |
|
12
|
|
|
12
|
|
82
|
|
|
12
|
|
|
|
|
40
|
|
|
12
|
|
|
|
|
563
|
|
19
|
12
|
|
|
12
|
|
6124
|
use UTF8::R2; |
|
12
|
|
|
|
|
68369
|
|
|
12
|
|
|
|
|
70
|
|
20
|
12
|
|
|
12
|
|
5629
|
use IOas::CP932IBM; |
|
12
|
|
|
|
|
33189305
|
|
|
12
|
|
|
|
|
108
|
|
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
sub import { |
23
|
12
|
|
|
12
|
|
1075
|
no strict qw(refs); |
|
12
|
|
|
|
|
25
|
|
|
12
|
|
|
|
|
3121
|
|
24
|
12
|
|
|
12
|
|
203
|
tie my %mb, 'UTF8::R2'; |
25
|
12
|
|
|
|
|
82
|
*{caller().'::mb'} = \%mb; |
|
12
|
|
|
|
|
94
|
|
26
|
12
|
|
|
16
|
|
46
|
*{caller().'::mbeach'} = sub { UTF8::R2::split(qr//,$_[0]) }; |
|
12
|
|
|
|
|
73
|
|
|
16
|
|
|
|
|
1168
|
|
27
|
12
|
|
|
|
|
36
|
*{caller().'::mbtr' } = \&UTF8::R2::tr; |
|
12
|
|
|
|
|
52
|
|
28
|
12
|
|
|
|
|
30
|
*{caller().'::iolen' } = \&IOas::CP932IBM::length; |
|
12
|
|
|
|
|
100
|
|
29
|
12
|
|
|
|
|
29
|
*{caller().'::iomid' } = \&IOas::CP932IBM::substr; |
|
12
|
|
|
|
|
46
|
|
30
|
12
|
|
|
|
|
25
|
*{caller().'::ioget' } = \&IOas::CP932IBM::readline; |
|
12
|
|
|
|
|
44
|
|
31
|
12
|
|
|
|
|
28
|
*{caller().'::ioput' } = \&IOas::CP932IBM::print; |
|
12
|
|
|
|
|
45
|
|
32
|
12
|
|
|
|
|
26
|
*{caller().'::ioputf'} = \&IOas::CP932IBM::printf; |
|
12
|
|
|
|
|
47
|
|
33
|
12
|
|
|
|
|
26
|
*{caller().'::iosort'} = \&IOas::CP932IBM::sort; |
|
12
|
|
|
|
|
406
|
|
34
|
|
|
|
|
|
|
} |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
1; |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
__END__ |