line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
|
2
|
|
|
|
|
|
|
package Net::vCard::ADR; |
3
|
|
|
|
|
|
|
|
4
|
5
|
|
|
5
|
|
28
|
use strict; |
|
5
|
|
|
|
|
12
|
|
|
5
|
|
|
|
|
256
|
|
5
|
5
|
|
|
5
|
|
27
|
use warnings; |
|
5
|
|
|
|
|
10
|
|
|
5
|
|
|
|
|
2311
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
sub new { |
9
|
8
|
|
|
8
|
0
|
14
|
my $class=shift; |
10
|
8
|
50
|
|
|
|
25
|
$class = ref($class) if ref($class); |
11
|
8
|
|
50
|
|
|
25
|
my $self=shift || {}; |
12
|
|
|
|
|
|
|
|
13
|
8
|
|
|
|
|
53
|
return bless $self, $class; |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
} |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
sub country { |
18
|
0
|
0
|
|
0
|
0
|
|
if (exists $_[1]) { |
19
|
0
|
|
|
|
|
|
$_[0]->{'country'}=$_[1]; |
20
|
|
|
|
|
|
|
} |
21
|
0
|
|
|
|
|
|
return $_[0]->{'country'}; |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
sub poBox { |
25
|
0
|
0
|
|
0
|
0
|
|
if (exists $_[1]) { |
26
|
0
|
|
|
|
|
|
$_[0]->{'poBox'}=$_[1]; |
27
|
|
|
|
|
|
|
} |
28
|
0
|
|
|
|
|
|
return $_[0]->{'poBox'}; |
29
|
|
|
|
|
|
|
} |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
sub city { |
32
|
0
|
0
|
|
0
|
0
|
|
if (exists $_[1]) { |
33
|
0
|
|
|
|
|
|
$_[0]->{'city'}=$_[1]; |
34
|
|
|
|
|
|
|
} |
35
|
0
|
|
|
|
|
|
return $_[0]->{'city'}; |
36
|
|
|
|
|
|
|
} |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
sub region { |
39
|
0
|
0
|
|
0
|
0
|
|
if (exists $_[1]) { |
40
|
0
|
|
|
|
|
|
$_[0]->{'region'}=$_[1]; |
41
|
|
|
|
|
|
|
} |
42
|
0
|
|
|
|
|
|
return $_[0]->{'region'}; |
43
|
|
|
|
|
|
|
} |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
sub address { |
46
|
0
|
0
|
|
0
|
0
|
|
if (exists $_[1]) { |
47
|
0
|
|
|
|
|
|
$_[0]->{'address'}=$_[1]; |
48
|
|
|
|
|
|
|
} |
49
|
0
|
|
|
|
|
|
return $_[0]->{'address'}; |
50
|
|
|
|
|
|
|
} |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
sub postalCode { |
53
|
0
|
0
|
|
0
|
0
|
|
if (exists $_[1]) { |
54
|
0
|
|
|
|
|
|
$_[0]->{'postalCode'}=$_[1]; |
55
|
|
|
|
|
|
|
} |
56
|
0
|
|
|
|
|
|
return $_[0]->{'postalCode'}; |
57
|
|
|
|
|
|
|
} |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
sub extendedAddress { |
60
|
0
|
0
|
|
0
|
0
|
|
if (exists $_[1]) { |
61
|
0
|
|
|
|
|
|
$_[0]->{'extendedAddress'}=$_[1]; |
62
|
|
|
|
|
|
|
} |
63
|
0
|
|
|
|
|
|
return $_[0]->{'extendedAddress'}; |
64
|
|
|
|
|
|
|
} |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
1; |