line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package ShiftJIS::CP932::MapUTF; |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
require 5.006; |
4
|
|
|
|
|
|
|
|
5
|
15
|
|
|
15
|
|
15360
|
use strict; |
|
15
|
|
|
|
|
33
|
|
|
15
|
|
|
|
|
635
|
|
6
|
15
|
|
|
15
|
|
72
|
use vars qw($VERSION $PACKAGE @ISA @EXPORT @EXPORT_OK %EXPORT_TAGS); |
|
15
|
|
|
|
|
27
|
|
|
15
|
|
|
|
|
4887
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
require Exporter; |
9
|
|
|
|
|
|
|
require DynaLoader; |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
@ISA = qw(Exporter DynaLoader); |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
$VERSION = '1.03'; |
14
|
|
|
|
|
|
|
$PACKAGE = 'ShiftJIS::CP932::MapUTF'; # __PACKAGE__ |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
@EXPORT = qw( |
17
|
|
|
|
|
|
|
cp932_to_unicode unicode_to_cp932 |
18
|
|
|
|
|
|
|
cp932_to_utf8 utf8_to_cp932 |
19
|
|
|
|
|
|
|
cp932_to_utf16le utf16le_to_cp932 |
20
|
|
|
|
|
|
|
cp932_to_utf16be utf16be_to_cp932 |
21
|
|
|
|
|
|
|
); |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
%EXPORT_TAGS = ( |
24
|
|
|
|
|
|
|
'unicode' => [ 'cp932_to_unicode', 'unicode_to_cp932' ], |
25
|
|
|
|
|
|
|
'utf8' => [ 'cp932_to_utf8', 'utf8_to_cp932' ], |
26
|
|
|
|
|
|
|
'utf16' => [ 'utf16_to_cp932' ], |
27
|
|
|
|
|
|
|
'utf16le' => [ 'cp932_to_utf16le', 'utf16le_to_cp932' ], |
28
|
|
|
|
|
|
|
'utf16be' => [ 'cp932_to_utf16be', 'utf16be_to_cp932' ], |
29
|
|
|
|
|
|
|
'utf32' => [ 'utf32_to_cp932' ], |
30
|
|
|
|
|
|
|
'utf32le' => [ 'cp932_to_utf32le', 'utf32le_to_cp932' ], |
31
|
|
|
|
|
|
|
'utf32be' => [ 'cp932_to_utf32be', 'utf32be_to_cp932' ], |
32
|
|
|
|
|
|
|
); |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
@EXPORT_OK = map @$_, values %EXPORT_TAGS; |
35
|
|
|
|
|
|
|
$EXPORT_TAGS{all} = [ @EXPORT_OK ]; |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
bootstrap ShiftJIS::CP932::MapUTF $VERSION; |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
1; |
40
|
|
|
|
|
|
|
__END__ |