line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Encode::ISO2022JP2; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
33213
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
34
|
|
4
|
1
|
|
|
1
|
|
3
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
27
|
|
5
|
1
|
|
|
1
|
|
4
|
use base qw(Encode::ISO2022); |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
3071
|
|
6
|
|
|
|
|
|
|
our $VERSION = '0.02'; |
7
|
|
|
|
|
|
|
|
8
|
1
|
|
|
1
|
|
723
|
use Encode::ISOIRSingle; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
36
|
|
9
|
1
|
|
|
1
|
|
564
|
use Encode::JISLegacy; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
39
|
|
10
|
1
|
|
|
1
|
|
961
|
use Encode::CN; |
|
1
|
|
|
|
|
6838
|
|
|
1
|
|
|
|
|
58
|
|
11
|
1
|
|
|
1
|
|
3360
|
use Encode::KR; |
|
1
|
|
|
|
|
6090
|
|
|
1
|
|
|
|
|
416
|
|
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
__PACKAGE__->Define( |
14
|
|
|
|
|
|
|
Alias => qr/\biso-?2022-?jp-?2$/i, |
15
|
|
|
|
|
|
|
Name => 'iso-2022-jp-2', |
16
|
|
|
|
|
|
|
CCS => [ |
17
|
|
|
|
|
|
|
{ cl => 1, |
18
|
|
|
|
|
|
|
encoding => 'ascii', |
19
|
|
|
|
|
|
|
g_init => 'g0', |
20
|
|
|
|
|
|
|
g_seq => "\e\x28\x42", |
21
|
|
|
|
|
|
|
}, |
22
|
|
|
|
|
|
|
# Japanese |
23
|
|
|
|
|
|
|
{ encoding => 'iso-646-jp', |
24
|
|
|
|
|
|
|
g => 'g0', |
25
|
|
|
|
|
|
|
g_seq => "\e\x28\x4A", |
26
|
|
|
|
|
|
|
#ss => '', # encodes runs as short as possible. |
27
|
|
|
|
|
|
|
}, |
28
|
|
|
|
|
|
|
{ bytes => 2, |
29
|
|
|
|
|
|
|
encoding => 'jis0208-raw', |
30
|
|
|
|
|
|
|
g => 'g0', |
31
|
|
|
|
|
|
|
g_seq => "\e\x24\x42", |
32
|
|
|
|
|
|
|
range => '\x21-\x7E', |
33
|
|
|
|
|
|
|
}, |
34
|
|
|
|
|
|
|
{ bytes => 2, |
35
|
|
|
|
|
|
|
dec_only => 1, |
36
|
|
|
|
|
|
|
encoding => 'jis-x-0208-1978', |
37
|
|
|
|
|
|
|
g => 'g0', |
38
|
|
|
|
|
|
|
g_seq => "\e\x24\x40", |
39
|
|
|
|
|
|
|
range => '\x21-\x7E', |
40
|
|
|
|
|
|
|
}, |
41
|
|
|
|
|
|
|
{ bytes => 2, |
42
|
|
|
|
|
|
|
encoding => 'jis-x-0212-ascii', |
43
|
|
|
|
|
|
|
g => 'g0', |
44
|
|
|
|
|
|
|
g_seq => "\e\x24\x28\x44", |
45
|
|
|
|
|
|
|
range => '\x21-\x7E', |
46
|
|
|
|
|
|
|
}, |
47
|
|
|
|
|
|
|
# European |
48
|
|
|
|
|
|
|
{ encoding => 'iso-8859-1-right', |
49
|
|
|
|
|
|
|
g => 'g2', |
50
|
|
|
|
|
|
|
g_seq => "\e\x2E\x41", |
51
|
|
|
|
|
|
|
ss => "\e\x4E", |
52
|
|
|
|
|
|
|
}, |
53
|
|
|
|
|
|
|
{ encoding => 'iso-8859-7-right', |
54
|
|
|
|
|
|
|
g => 'g2', |
55
|
|
|
|
|
|
|
g_seq => "\e\x2E\x46", |
56
|
|
|
|
|
|
|
ss => "\e\x4E", |
57
|
|
|
|
|
|
|
}, |
58
|
|
|
|
|
|
|
# Chinese |
59
|
|
|
|
|
|
|
{ bytes => 2, |
60
|
|
|
|
|
|
|
encoding => 'gb2312-raw', |
61
|
|
|
|
|
|
|
g => 'g0', |
62
|
|
|
|
|
|
|
g_seq => "\e\x24\x41", |
63
|
|
|
|
|
|
|
range => '\x21-\x7E', |
64
|
|
|
|
|
|
|
}, |
65
|
|
|
|
|
|
|
# Korean |
66
|
|
|
|
|
|
|
{ bytes => 2, |
67
|
|
|
|
|
|
|
encoding => 'ksc5601-raw', |
68
|
|
|
|
|
|
|
g => 'g0', |
69
|
|
|
|
|
|
|
g_seq => "\e\x24\x28\x43", |
70
|
|
|
|
|
|
|
range => '\x21-\x7E', |
71
|
|
|
|
|
|
|
}, |
72
|
|
|
|
|
|
|
# Nonstandard |
73
|
|
|
|
|
|
|
{ encoding => 'jis-x-0201-right', |
74
|
|
|
|
|
|
|
g => 'g0', |
75
|
|
|
|
|
|
|
g_seq => "\e\x28\x49", |
76
|
|
|
|
|
|
|
}, |
77
|
|
|
|
|
|
|
], |
78
|
|
|
|
|
|
|
LineInit => 1, |
79
|
|
|
|
|
|
|
SubChar => "\x{3013}", |
80
|
|
|
|
|
|
|
); |
81
|
|
|
|
|
|
|
|
82
|
0
|
|
|
0
|
1
|
|
sub needs_lines { 1 } |
83
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
1; |
85
|
|
|
|
|
|
|
__END__ |