line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package CP932::R2; |
2
|
|
|
|
|
|
|
###################################################################### |
3
|
|
|
|
|
|
|
# |
4
|
|
|
|
|
|
|
# CP932::R2 - provides minimal CP932 I/O subroutines by short name |
5
|
|
|
|
|
|
|
# |
6
|
|
|
|
|
|
|
# http://search.cpan.org/dist/CP932-R2/ |
7
|
|
|
|
|
|
|
# |
8
|
|
|
|
|
|
|
# Copyright (c) 2019, 2021 INABA Hitoshi in a CPAN |
9
|
|
|
|
|
|
|
###################################################################### |
10
|
|
|
|
|
|
|
|
11
|
12
|
|
|
12
|
|
35758
|
use 5.00503; # Universal Consensus 1998 for primetools |
|
12
|
|
|
|
|
116
|
|
12
|
|
|
|
|
|
|
# use 5.008001; # Lancaster Consensus 2013 for toolchains |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
$VERSION = '0.06'; |
15
|
|
|
|
|
|
|
$VERSION = $VERSION; |
16
|
|
|
|
|
|
|
|
17
|
12
|
|
|
12
|
|
55
|
use strict; |
|
12
|
|
|
|
|
24
|
|
|
12
|
|
|
|
|
358
|
|
18
|
12
|
50
|
|
12
|
|
201
|
BEGIN { $INC{'warnings.pm'} = '' if $] < 5.006 }; use warnings; $^W=1; |
|
12
|
|
|
12
|
|
82
|
|
|
12
|
|
|
|
|
36
|
|
|
12
|
|
|
|
|
541
|
|
19
|
12
|
|
|
12
|
|
6127
|
use UTF8::R2; |
|
12
|
|
|
|
|
84589
|
|
|
12
|
|
|
|
|
71
|
|
20
|
12
|
|
|
12
|
|
5790
|
use IOas::CP932; |
|
12
|
|
|
|
|
28048468
|
|
|
12
|
|
|
|
|
86
|
|
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
sub import { |
23
|
12
|
|
|
12
|
|
578
|
no strict qw(refs); |
|
12
|
|
|
|
|
24
|
|
|
12
|
|
|
|
|
2164
|
|
24
|
12
|
|
|
12
|
|
181
|
tie my %mb, 'UTF8::R2'; |
25
|
12
|
|
|
|
|
66
|
*{caller().'::mb'} = \%mb; |
|
12
|
|
|
|
|
79
|
|
26
|
12
|
|
|
16
|
|
44
|
*{caller().'::mbeach'} = sub { UTF8::R2::split(qr//,$_[0]) }; |
|
12
|
|
|
|
|
63
|
|
|
16
|
|
|
|
|
998
|
|
27
|
12
|
|
|
|
|
30
|
*{caller().'::mbtr' } = \&UTF8::R2::tr; |
|
12
|
|
|
|
|
41
|
|
28
|
12
|
|
|
|
|
24
|
*{caller().'::iolen' } = \&IOas::CP932::length; |
|
12
|
|
|
|
|
41
|
|
29
|
12
|
|
|
|
|
22
|
*{caller().'::iomid' } = \&IOas::CP932::substr; |
|
12
|
|
|
|
|
43
|
|
30
|
12
|
|
|
|
|
24
|
*{caller().'::ioget' } = \&IOas::CP932::readline; |
|
12
|
|
|
|
|
41
|
|
31
|
12
|
|
|
|
|
20
|
*{caller().'::ioput' } = \&IOas::CP932::print; |
|
12
|
|
|
|
|
38
|
|
32
|
12
|
|
|
|
|
22
|
*{caller().'::ioputf'} = \&IOas::CP932::printf; |
|
12
|
|
|
|
|
39
|
|
33
|
12
|
|
|
|
|
23
|
*{caller().'::iosort'} = \&IOas::CP932::sort; |
|
12
|
|
|
|
|
373
|
|
34
|
|
|
|
|
|
|
} |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
1; |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
__END__ |