line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package WWW::Google::Contacts::Data; |
2
|
|
|
|
|
|
|
{ |
3
|
|
|
|
|
|
|
$WWW::Google::Contacts::Data::VERSION = '0.39'; |
4
|
|
|
|
|
|
|
} |
5
|
|
|
|
|
|
|
|
6
|
17
|
|
|
17
|
|
146
|
use strict; |
|
17
|
|
|
|
|
41
|
|
|
17
|
|
|
|
|
510
|
|
7
|
17
|
|
|
17
|
|
101
|
use warnings; |
|
17
|
|
|
|
|
37
|
|
|
17
|
|
|
|
|
468
|
|
8
|
|
|
|
|
|
|
|
9
|
17
|
|
|
17
|
|
22071
|
use XML::Simple (); |
|
17
|
|
|
|
|
184824
|
|
|
17
|
|
|
|
|
458
|
|
10
|
17
|
|
|
17
|
|
19968
|
use Encode; |
|
17
|
|
|
|
|
208882
|
|
|
17
|
|
|
|
|
3874
|
|
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
sub decode_xml { |
13
|
0
|
|
|
0
|
0
|
|
my ( $class, $content ) = @_; |
14
|
|
|
|
|
|
|
|
15
|
0
|
|
|
|
|
|
my $xmls = XML::Simple->new; |
16
|
0
|
|
|
|
|
|
my $data = $xmls->XMLin( |
17
|
|
|
|
|
|
|
decode_utf8($content), |
18
|
|
|
|
|
|
|
SuppressEmpty => undef, |
19
|
|
|
|
|
|
|
KeyAttr => [] |
20
|
|
|
|
|
|
|
); |
21
|
0
|
|
|
|
|
|
return $data; |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
sub encode_xml { |
25
|
0
|
|
|
0
|
0
|
|
my ( $class, $content ) = @_; |
26
|
|
|
|
|
|
|
|
27
|
0
|
|
|
|
|
|
my $xmls = XML::Simple->new; |
28
|
0
|
|
|
|
|
|
my $xml = $xmls->XMLout( $content, KeepRoot => 1 ); |
29
|
0
|
|
|
|
|
|
return encode_utf8($xml); |
30
|
|
|
|
|
|
|
} |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
1; |