line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package autobox::Encode; |
2
|
2
|
|
|
2
|
|
505
|
use strict; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
75
|
|
3
|
2
|
|
|
2
|
|
11
|
use warnings; |
|
2
|
|
|
|
|
2
|
|
|
2
|
|
|
|
|
80
|
|
4
|
2
|
|
|
2
|
|
13
|
use base qw/autobox/; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
1702
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
our $VERSION = '0.03'; |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
sub import { |
9
|
2
|
|
|
2
|
|
32
|
shift->SUPER::import( SCALAR => 'autobox::Encode::Scalar' ); |
10
|
|
|
|
|
|
|
} |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
package # hide from pause :-) |
13
|
|
|
|
|
|
|
autobox::Encode::Scalar; |
14
|
|
|
|
|
|
|
|
15
|
2
|
|
|
2
|
|
22507
|
use Encode (); |
|
2
|
|
|
|
|
24351
|
|
|
2
|
|
|
|
|
47
|
|
16
|
2
|
|
|
2
|
|
1766
|
use charnames (); |
|
2
|
|
|
|
|
76332
|
|
|
2
|
|
|
|
|
347
|
|
17
|
|
|
|
|
|
|
|
18
|
2
|
|
|
2
|
|
97
|
sub encode { Encode::encode($_[1], $_[0], $_[2]) } |
19
|
5
|
|
|
5
|
|
67
|
sub decode { Encode::decode($_[1], $_[0], $_[2]) } |
20
|
2
|
|
|
2
|
|
54
|
sub is_utf8 { Encode::is_utf8($_[0]) } |
21
|
1
|
|
|
1
|
|
7
|
sub from_to { Encode::from_to($_[0], $_[1], $_[2]); $_[0] } |
|
1
|
|
|
|
|
56
|
|
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
sub charname { |
24
|
1
|
|
|
1
|
|
3
|
my $string = shift; |
25
|
1
|
|
|
|
|
10
|
join '', map charnames::viacode(ord), split //, $string; |
26
|
|
|
|
|
|
|
} |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
1; |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
__END__ |