line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Text::CSV::Encoded::Coder::Base; |
2
|
|
|
|
|
|
|
$Text::CSV::Encoded::Coder::Base::VERSION = '0.25'; |
3
|
|
|
|
|
|
|
# VERSION |
4
|
|
|
|
|
|
|
|
5
|
11
|
|
|
11
|
|
44
|
use strict; |
|
11
|
|
|
|
|
31
|
|
|
11
|
|
|
|
|
257
|
|
6
|
11
|
|
|
11
|
|
129
|
use warnings; |
|
11
|
|
|
|
|
11
|
|
|
11
|
|
|
|
|
2290
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
sub new { |
9
|
10
|
|
|
10
|
0
|
15
|
my $class = shift; |
10
|
10
|
|
|
|
|
21
|
my %opt = @_; |
11
|
10
|
|
|
|
|
151
|
bless { %opt }, $class; |
12
|
|
|
|
|
|
|
} |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
|
15
|
0
|
|
|
0
|
1
|
0
|
sub upgrade { 0; } |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
sub encode { |
19
|
0
|
|
|
0
|
1
|
0
|
my ( $self, $encoding, $str ) = @_; |
20
|
0
|
|
|
|
|
0
|
$str; |
21
|
|
|
|
|
|
|
} |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
sub decode { |
25
|
0
|
|
|
0
|
1
|
0
|
my ( $self, $encoding, $str ) = @_; |
26
|
0
|
|
|
|
|
0
|
$str; |
27
|
|
|
|
|
|
|
} |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
sub decode_fields_ref { |
31
|
0
|
|
|
0
|
1
|
0
|
my ( $self, $encoding, $arrayref ) = @_; |
32
|
|
|
|
|
|
|
} |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
sub encode_fields_ref { |
36
|
0
|
|
|
0
|
1
|
0
|
my ( $self, $encoding, $arrayref ) = @_; |
37
|
|
|
|
|
|
|
} |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
sub encode_check_value { |
41
|
80
|
100
|
|
80
|
1
|
13320
|
$_[0]->{ encode_check_value } = $_[1] if @_ > 1; |
42
|
80
|
100
|
|
|
|
549
|
$_[0]->{ encode_check_value } || 0; |
43
|
|
|
|
|
|
|
} |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
sub decode_check_value { |
47
|
62
|
50
|
|
62
|
1
|
12164
|
$_[0]->{ decode_check_value } = $_[1] if @_ > 1; |
48
|
62
|
50
|
|
|
|
432
|
$_[0]->{ decode_check_value } || 0; |
49
|
|
|
|
|
|
|
} |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
1; |
53
|
|
|
|
|
|
|
__END__ |