line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Protocol::DBus::Address; |
2
|
|
|
|
|
|
|
|
3
|
9
|
|
|
9
|
|
253369
|
use strict; |
|
9
|
|
|
|
|
37
|
|
|
9
|
|
|
|
|
238
|
|
4
|
9
|
|
|
9
|
|
34
|
use warnings; |
|
9
|
|
|
|
|
17
|
|
|
9
|
|
|
|
|
186
|
|
5
|
|
|
|
|
|
|
|
6
|
9
|
|
|
9
|
|
1103
|
use Call::Context; |
|
9
|
|
|
|
|
960
|
|
|
9
|
|
|
|
|
2220
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
# Not a very choosy parser, and it doesn’t try to validate anything. |
9
|
|
|
|
|
|
|
sub parse { |
10
|
4
|
|
|
4
|
0
|
11007
|
Call::Context::must_be_list(); |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
return map { |
13
|
4
|
|
|
|
|
87
|
my $str = $_; |
|
5
|
|
|
|
|
24
|
|
14
|
|
|
|
|
|
|
|
15
|
5
|
|
|
|
|
45
|
my $xport = substr( $_, 0, 1 + index($_, ':'), q<> ); |
16
|
5
|
|
|
|
|
32
|
chop $xport; |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
my %kvs = ( |
19
|
5
|
|
|
|
|
18
|
map { split m<=>, $_ } (split m<,>, $_), |
|
6
|
|
|
|
|
36
|
|
20
|
|
|
|
|
|
|
); |
21
|
|
|
|
|
|
|
|
22
|
5
|
|
|
|
|
42
|
s<%(..)>ge for values %kvs; |
|
0
|
|
|
|
|
0
|
|
23
|
|
|
|
|
|
|
|
24
|
5
|
|
|
|
|
74
|
bless { _str => $str, _transport => $xport, _attrs => \%kvs }, __PACKAGE__; |
25
|
|
|
|
|
|
|
} ( split m<;>, $_[0] ); |
26
|
|
|
|
|
|
|
} |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
#---------------------------------------------------------------------- |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
sub transport { |
31
|
5
|
|
|
5
|
0
|
8543
|
return $_[0]{'_transport'}; |
32
|
|
|
|
|
|
|
} |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
sub to_string { |
35
|
4
|
|
|
4
|
0
|
72
|
return $_[0]{'_str'}; |
36
|
|
|
|
|
|
|
} |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
sub attribute { |
39
|
8
|
|
|
8
|
0
|
140
|
return $_[0]{'_attrs'}{$_[1]}; |
40
|
|
|
|
|
|
|
} |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
1; |