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, 2021 INABA Hitoshi in a CPAN |
9
|
|
|
|
|
|
|
###################################################################### |
10
|
|
|
|
|
|
|
|
11
|
12
|
|
|
12
|
|
35867
|
use 5.00503; # Universal Consensus 1998 for primetools |
|
12
|
|
|
|
|
95
|
|
12
|
|
|
|
|
|
|
# use 5.008001; # Lancaster Consensus 2013 for toolchains |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
$VERSION = '0.07'; |
15
|
|
|
|
|
|
|
$VERSION = $VERSION; |
16
|
|
|
|
|
|
|
|
17
|
12
|
|
|
12
|
|
56
|
use strict; |
|
12
|
|
|
|
|
22
|
|
|
12
|
|
|
|
|
337
|
|
18
|
12
|
50
|
|
12
|
|
250
|
BEGIN { $INC{'warnings.pm'} = '' if $] < 5.006 }; use warnings; $^W=1; |
|
12
|
|
|
12
|
|
75
|
|
|
12
|
|
|
|
|
34
|
|
|
12
|
|
|
|
|
585
|
|
19
|
12
|
|
|
12
|
|
6350
|
use UTF8::R2; |
|
12
|
|
|
|
|
85135
|
|
|
12
|
|
|
|
|
62
|
|
20
|
12
|
|
|
12
|
|
5275
|
use IOas::CP932X; |
|
12
|
|
|
|
|
28584977
|
|
|
12
|
|
|
|
|
84
|
|
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
sub import { |
23
|
12
|
|
|
12
|
|
695
|
no strict qw(refs); |
|
12
|
|
|
|
|
27
|
|
|
12
|
|
|
|
|
2224
|
|
24
|
12
|
|
|
12
|
|
188
|
tie my %mb, 'UTF8::R2'; |
25
|
12
|
|
|
|
|
69
|
*{caller().'::mb'} = \%mb; |
|
12
|
|
|
|
|
83
|
|
26
|
12
|
|
|
16
|
|
44
|
*{caller().'::mbeach'} = sub { UTF8::R2::split(qr//,$_[0]) }; |
|
12
|
|
|
|
|
62
|
|
|
16
|
|
|
|
|
944
|
|
27
|
12
|
|
|
|
|
28
|
*{caller().'::mbtr' } = \&UTF8::R2::tr; |
|
12
|
|
|
|
|
40
|
|
28
|
12
|
|
|
|
|
26
|
*{caller().'::iolen' } = \&IOas::CP932X::length; |
|
12
|
|
|
|
|
36
|
|
29
|
12
|
|
|
|
|
24
|
*{caller().'::iomid' } = \&IOas::CP932X::substr; |
|
12
|
|
|
|
|
37
|
|
30
|
12
|
|
|
|
|
22
|
*{caller().'::ioget' } = \&IOas::CP932X::readline; |
|
12
|
|
|
|
|
40
|
|
31
|
12
|
|
|
|
|
16
|
*{caller().'::ioput' } = \&IOas::CP932X::print; |
|
12
|
|
|
|
|
40
|
|
32
|
12
|
|
|
|
|
21
|
*{caller().'::ioputf'} = \&IOas::CP932X::printf; |
|
12
|
|
|
|
|
37
|
|
33
|
12
|
|
|
|
|
22
|
*{caller().'::iosort'} = \&IOas::CP932X::sort; |
|
12
|
|
|
|
|
343
|
|
34
|
|
|
|
|
|
|
} |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
1; |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
__END__ |