line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Text::CSV::Unicode; |
2
|
|
|
|
|
|
|
|
3
|
2
|
|
|
2
|
|
66960
|
use strict; |
|
2
|
|
|
|
|
11
|
|
|
2
|
|
|
|
|
58
|
|
4
|
2
|
|
|
2
|
|
9
|
use warnings; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
57
|
|
5
|
|
|
|
|
|
|
|
6
|
2
|
|
|
2
|
|
9
|
use base qw(Text::CSV); |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
1480
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
our $VERSION = '0.399_002'; |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
sub new { |
11
|
5
|
|
|
5
|
1
|
5375
|
my ($self, $hash) = @_; |
12
|
5
|
100
|
100
|
|
|
30
|
if ( $hash and $hash -> {binary} ) { |
13
|
2
|
|
|
|
|
363
|
warnings::warnif("deprecated", |
14
|
|
|
|
|
|
|
"binary is deprecated: use Text::CSV"); |
15
|
2
|
|
|
|
|
47
|
return Text::CSV->new( $hash ); |
16
|
|
|
|
|
|
|
} |
17
|
3
|
100
|
|
|
|
6
|
return $self->SUPER::new( { binary => 1, %{ $hash || {} } } ); |
|
3
|
|
|
|
|
28
|
|
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
sub combine { |
21
|
11
|
|
|
11
|
1
|
2753
|
my $self = shift; |
22
|
11
|
100
|
|
|
|
39
|
for (grep defined, @_) { return if _bad(); } |
|
20
|
|
|
|
|
39
|
|
23
|
10
|
|
|
|
|
38
|
return $self->SUPER::combine(@_); |
24
|
|
|
|
|
|
|
} |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
sub parse { |
27
|
8
|
|
|
8
|
1
|
2343
|
my $self = shift; |
28
|
8
|
|
|
|
|
31
|
for (map +$_, grep defined, @_) { |
29
|
7
|
|
|
|
|
15
|
chomp; |
30
|
7
|
100
|
|
|
|
15
|
return if _bad(); |
31
|
|
|
|
|
|
|
} |
32
|
7
|
|
|
|
|
28
|
return $self->SUPER::parse( @_ ); |
33
|
|
|
|
|
|
|
} |
34
|
|
|
|
|
|
|
|
35
|
2
|
|
|
2
|
|
40910
|
sub _bad { m{ [^\t\P{Cntrl}] }x; } # test $_ |
|
2
|
|
|
27
|
|
31
|
|
|
2
|
|
|
|
|
30
|
|
|
27
|
|
|
|
|
110
|
|
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
1; |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
__END__ |