| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package Unicode::Transform; |
|
2
|
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
require 5.006001; |
|
4
|
|
|
|
|
|
|
|
|
5
|
10
|
|
|
10
|
|
8766
|
use strict; |
|
|
10
|
|
|
|
|
17
|
|
|
|
10
|
|
|
|
|
339
|
|
|
6
|
10
|
|
|
10
|
|
52
|
no warnings 'utf8'; |
|
|
10
|
|
|
|
|
14
|
|
|
|
10
|
|
|
|
|
3808
|
|
|
7
|
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
require Exporter; |
|
9
|
|
|
|
|
|
|
require DynaLoader; |
|
10
|
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
our $VERSION = '0.51'; |
|
12
|
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
our @ISA = qw(Exporter DynaLoader); |
|
14
|
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
our @UTF_names = qw(utf16le utf16be utf32le utf32be utf8 utf8mod utfcp1047); |
|
16
|
|
|
|
|
|
|
our @Codenames = ("unicode", @UTF_names); |
|
17
|
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
our %EXPORT_TAGS = ( |
|
19
|
|
|
|
|
|
|
'from' => [ map('unicode_to_'.$_, @UTF_names) ], |
|
20
|
|
|
|
|
|
|
'to' => [ map($_.'_to_unicode', @UTF_names) ], |
|
21
|
|
|
|
|
|
|
'chr' => [ map('chr_'.$_, @Codenames) ], |
|
22
|
|
|
|
|
|
|
'ord' => [ map('ord_'.$_, @Codenames) ], |
|
23
|
|
|
|
|
|
|
); |
|
24
|
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
for my $a (@Codenames) { |
|
26
|
|
|
|
|
|
|
for my $b (@Codenames) { |
|
27
|
|
|
|
|
|
|
push @{ $EXPORT_TAGS{'conv'} }, "${a}_to_${b}"; |
|
28
|
|
|
|
|
|
|
} |
|
29
|
|
|
|
|
|
|
} |
|
30
|
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
our @EXPORT = (map @$_, @EXPORT_TAGS{qw(from to)}); |
|
32
|
|
|
|
|
|
|
our @EXPORT_OK = (map @$_, @EXPORT_TAGS{qw(conv chr ord)}); |
|
33
|
|
|
|
|
|
|
$EXPORT_TAGS{'all'} = \ @EXPORT_OK; |
|
34
|
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
bootstrap Unicode::Transform $VERSION; |
|
36
|
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
1; |
|
38
|
|
|
|
|
|
|
__END__ |