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
|
|
36190
|
use 5.00503; # Universal Consensus 1998 for primetools |
|
12
|
|
|
|
|
100
|
|
12
|
|
|
|
|
|
|
# use 5.008001; # Lancaster Consensus 2013 for toolchains |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
$VERSION = '0.07'; |
15
|
|
|
|
|
|
|
$VERSION = $VERSION; |
16
|
|
|
|
|
|
|
|
17
|
12
|
|
|
12
|
|
60
|
use strict; |
|
12
|
|
|
|
|
17
|
|
|
12
|
|
|
|
|
354
|
|
18
|
12
|
50
|
|
12
|
|
244
|
BEGIN { $INC{'warnings.pm'} = '' if $] < 5.006 }; use warnings; $^W=1; |
|
12
|
|
|
12
|
|
79
|
|
|
12
|
|
|
|
|
35
|
|
|
12
|
|
|
|
|
529
|
|
19
|
12
|
|
|
12
|
|
6351
|
use UTF8::R2; |
|
12
|
|
|
|
|
86356
|
|
|
12
|
|
|
|
|
76
|
|
20
|
12
|
|
|
12
|
|
5812
|
use IOas::CP932; |
|
12
|
|
|
|
|
28302209
|
|
|
12
|
|
|
|
|
82
|
|
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
sub import { |
23
|
12
|
|
|
12
|
|
607
|
no strict qw(refs); |
|
12
|
|
|
|
|
25
|
|
|
12
|
|
|
|
|
2237
|
|
24
|
12
|
|
|
12
|
|
180
|
tie my %mb, 'UTF8::R2'; |
25
|
12
|
|
|
|
|
76
|
*{caller().'::mb'} = \%mb; |
|
12
|
|
|
|
|
87
|
|
26
|
12
|
|
|
16
|
|
44
|
*{caller().'::mbeach'} = sub { UTF8::R2::split(qr//,$_[0]) }; |
|
12
|
|
|
|
|
62
|
|
|
16
|
|
|
|
|
960
|
|
27
|
12
|
|
|
|
|
30
|
*{caller().'::mbtr' } = \&UTF8::R2::tr; |
|
12
|
|
|
|
|
40
|
|
28
|
12
|
|
|
|
|
22
|
*{caller().'::iolen' } = \&IOas::CP932::length; |
|
12
|
|
|
|
|
42
|
|
29
|
12
|
|
|
|
|
21
|
*{caller().'::iomid' } = \&IOas::CP932::substr; |
|
12
|
|
|
|
|
39
|
|
30
|
12
|
|
|
|
|
23
|
*{caller().'::ioget' } = \&IOas::CP932::readline; |
|
12
|
|
|
|
|
36
|
|
31
|
12
|
|
|
|
|
21
|
*{caller().'::ioput' } = \&IOas::CP932::print; |
|
12
|
|
|
|
|
37
|
|
32
|
12
|
|
|
|
|
20
|
*{caller().'::ioputf'} = \&IOas::CP932::printf; |
|
12
|
|
|
|
|
37
|
|
33
|
12
|
|
|
|
|
23
|
*{caller().'::iosort'} = \&IOas::CP932::sort; |
|
12
|
|
|
|
|
365
|
|
34
|
|
|
|
|
|
|
} |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
1; |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
__END__ |