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
|
|
36588
|
use 5.00503; # Universal Consensus 1998 for primetools |
|
12
|
|
|
|
|
109
|
|
12
|
|
|
|
|
|
|
# use 5.008001; # Lancaster Consensus 2013 for toolchains |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
$VERSION = '0.06'; |
15
|
|
|
|
|
|
|
$VERSION = $VERSION; |
16
|
|
|
|
|
|
|
|
17
|
12
|
|
|
12
|
|
57
|
use strict; |
|
12
|
|
|
|
|
21
|
|
|
12
|
|
|
|
|
352
|
|
18
|
12
|
50
|
|
12
|
|
202
|
BEGIN { $INC{'warnings.pm'} = '' if $] < 5.006 }; use warnings; $^W=1; |
|
12
|
|
|
12
|
|
73
|
|
|
12
|
|
|
|
|
38
|
|
|
12
|
|
|
|
|
561
|
|
19
|
12
|
|
|
12
|
|
6334
|
use UTF8::R2; |
|
12
|
|
|
|
|
87090
|
|
|
12
|
|
|
|
|
77
|
|
20
|
12
|
|
|
12
|
|
5855
|
use IOas::CP932X; |
|
12
|
|
|
|
|
28093837
|
|
|
12
|
|
|
|
|
87
|
|
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
sub import { |
23
|
12
|
|
|
12
|
|
575
|
no strict qw(refs); |
|
12
|
|
|
|
|
25
|
|
|
12
|
|
|
|
|
2132
|
|
24
|
12
|
|
|
12
|
|
172
|
tie my %mb, 'UTF8::R2'; |
25
|
12
|
|
|
|
|
72
|
*{caller().'::mb'} = \%mb; |
|
12
|
|
|
|
|
86
|
|
26
|
12
|
|
|
16
|
|
41
|
*{caller().'::mbeach'} = sub { UTF8::R2::split(qr//,$_[0]) }; |
|
12
|
|
|
|
|
59
|
|
|
16
|
|
|
|
|
1003
|
|
27
|
12
|
|
|
|
|
33
|
*{caller().'::mbtr' } = \&UTF8::R2::tr; |
|
12
|
|
|
|
|
40
|
|
28
|
12
|
|
|
|
|
22
|
*{caller().'::iolen' } = \&IOas::CP932X::length; |
|
12
|
|
|
|
|
45
|
|
29
|
12
|
|
|
|
|
27
|
*{caller().'::iomid' } = \&IOas::CP932X::substr; |
|
12
|
|
|
|
|
39
|
|
30
|
12
|
|
|
|
|
22
|
*{caller().'::ioget' } = \&IOas::CP932X::readline; |
|
12
|
|
|
|
|
38
|
|
31
|
12
|
|
|
|
|
18
|
*{caller().'::ioput' } = \&IOas::CP932X::print; |
|
12
|
|
|
|
|
37
|
|
32
|
12
|
|
|
|
|
22
|
*{caller().'::ioputf'} = \&IOas::CP932X::printf; |
|
12
|
|
|
|
|
43
|
|
33
|
12
|
|
|
|
|
24
|
*{caller().'::iosort'} = \&IOas::CP932X::sort; |
|
12
|
|
|
|
|
346
|
|
34
|
|
|
|
|
|
|
} |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
1; |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
__END__ |