line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package ShiftJIS::X0213::MapUTF; |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
require 5.006001; |
4
|
|
|
|
|
|
|
|
5
|
24
|
|
|
24
|
|
32850
|
use strict; |
|
24
|
|
|
|
|
47
|
|
|
24
|
|
|
|
|
1374
|
|
6
|
24
|
|
|
24
|
|
129
|
use vars qw($VERSION $PACKAGE @ISA @EXPORT @EXPORT_OK %EXPORT_TAGS); |
|
24
|
|
|
|
|
39
|
|
|
24
|
|
|
|
|
8759
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
require Exporter; |
9
|
|
|
|
|
|
|
require DynaLoader; |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
@ISA = qw(Exporter DynaLoader); |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
$VERSION = '0.40'; |
14
|
|
|
|
|
|
|
$PACKAGE = 'ShiftJIS::X0213::MapUTF'; # __PACKAGE__ |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
@EXPORT = qw( |
17
|
|
|
|
|
|
|
sjis0213_to_unicode unicode_to_sjis0213 |
18
|
|
|
|
|
|
|
sjis0213_to_utf8 utf8_to_sjis0213 |
19
|
|
|
|
|
|
|
sjis0213_to_utf16le utf16le_to_sjis0213 |
20
|
|
|
|
|
|
|
sjis0213_to_utf16be utf16be_to_sjis0213 |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
sjis2004_to_unicode unicode_to_sjis2004 |
23
|
|
|
|
|
|
|
sjis2004_to_utf8 utf8_to_sjis2004 |
24
|
|
|
|
|
|
|
sjis2004_to_utf16le utf16le_to_sjis2004 |
25
|
|
|
|
|
|
|
sjis2004_to_utf16be utf16be_to_sjis2004 |
26
|
|
|
|
|
|
|
); |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
%EXPORT_TAGS = ( |
29
|
|
|
|
|
|
|
'unicode' => [ |
30
|
|
|
|
|
|
|
'sjis2004_to_unicode', 'unicode_to_sjis2004', |
31
|
|
|
|
|
|
|
'sjis0213_to_unicode', 'unicode_to_sjis0213', |
32
|
|
|
|
|
|
|
], |
33
|
|
|
|
|
|
|
'utf8' => [ |
34
|
|
|
|
|
|
|
'sjis2004_to_utf8', 'utf8_to_sjis2004', |
35
|
|
|
|
|
|
|
'sjis0213_to_utf8', 'utf8_to_sjis0213', |
36
|
|
|
|
|
|
|
], |
37
|
|
|
|
|
|
|
'utf16' => [ |
38
|
|
|
|
|
|
|
'utf16_to_sjis2004', |
39
|
|
|
|
|
|
|
'utf16_to_sjis0213', |
40
|
|
|
|
|
|
|
], |
41
|
|
|
|
|
|
|
'utf16le' => [ |
42
|
|
|
|
|
|
|
'sjis2004_to_utf16le', 'utf16le_to_sjis2004', |
43
|
|
|
|
|
|
|
'sjis0213_to_utf16le', 'utf16le_to_sjis0213', |
44
|
|
|
|
|
|
|
], |
45
|
|
|
|
|
|
|
'utf16be' => [ |
46
|
|
|
|
|
|
|
'sjis2004_to_utf16be', 'utf16be_to_sjis2004', |
47
|
|
|
|
|
|
|
'sjis0213_to_utf16be', 'utf16be_to_sjis0213', |
48
|
|
|
|
|
|
|
], |
49
|
|
|
|
|
|
|
'utf32' => [ |
50
|
|
|
|
|
|
|
'utf32_to_sjis2004', |
51
|
|
|
|
|
|
|
'utf32_to_sjis0213', |
52
|
|
|
|
|
|
|
], |
53
|
|
|
|
|
|
|
'utf32le' => [ |
54
|
|
|
|
|
|
|
'sjis2004_to_utf32le', 'utf32le_to_sjis2004', |
55
|
|
|
|
|
|
|
'sjis0213_to_utf32le', 'utf32le_to_sjis0213', |
56
|
|
|
|
|
|
|
], |
57
|
|
|
|
|
|
|
'utf32be' => [ |
58
|
|
|
|
|
|
|
'sjis2004_to_utf32be', 'utf32be_to_sjis2004', |
59
|
|
|
|
|
|
|
'sjis0213_to_utf32be', 'utf32be_to_sjis0213', |
60
|
|
|
|
|
|
|
], |
61
|
|
|
|
|
|
|
); |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
@EXPORT_OK = map @$_, values %EXPORT_TAGS; |
64
|
|
|
|
|
|
|
$EXPORT_TAGS{all} = [ @EXPORT_OK ]; |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
bootstrap ShiftJIS::X0213::MapUTF $VERSION; |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
1; |
69
|
|
|
|
|
|
|
__END__ |