line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package HTTP::MobileAttribute::Plugin::IS::EZweb; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
706
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
34
|
|
4
|
1
|
|
|
1
|
|
5
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
30
|
|
5
|
1
|
|
|
1
|
|
5
|
use base qw/HTTP::MobileAttribute::Plugin/; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
134
|
|
6
|
|
|
|
|
|
|
|
7
|
1
|
|
|
1
|
1
|
6
|
sub is_win : CarrierMethod('EZweb') { substr($_[1]->device_id, 2, 1) eq '3' } |
|
1
|
|
|
6
|
|
1
|
|
|
1
|
|
|
|
|
10
|
|
|
6
|
|
|
|
|
87
|
|
8
|
|
|
|
|
|
|
sub is_tuka : CarrierMethod('EZweb') { |
9
|
6
|
|
|
6
|
1
|
41
|
my ($self, $c) = @_; |
10
|
6
|
|
|
|
|
29
|
my $tuka = substr($_[1]->device_id, 2, 1); |
11
|
6
|
100
|
100
|
|
|
25
|
if ($c->is_wap2 && $tuka eq 'U') { |
|
|
100
|
|
|
|
|
|
12
|
1
|
|
|
|
|
6
|
return 1; |
13
|
|
|
|
|
|
|
} |
14
|
|
|
|
|
|
|
elsif ($tuka eq 'T') { |
15
|
1
|
|
|
|
|
5
|
return 1; |
16
|
|
|
|
|
|
|
} |
17
|
1
|
|
|
1
|
|
410
|
} |
|
1
|
|
|
|
|
7
|
|
|
1
|
|
|
|
|
5
|
|
18
|
1
|
|
|
1
|
1
|
256
|
sub is_wap1 : CarrierMethod('EZweb') { !$_[1]->xhtml_compliant } |
|
1
|
|
|
3
|
|
2
|
|
|
1
|
|
|
|
|
6
|
|
|
3
|
|
|
|
|
34
|
|
19
|
1
|
|
|
1
|
1
|
228
|
sub is_wap2 : CarrierMethod('EZweb') { $_[1]->xhtml_compliant } |
|
1
|
|
|
9
|
|
2
|
|
|
1
|
|
|
|
|
4
|
|
|
9
|
|
|
|
|
64
|
|
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
1; |
22
|
|
|
|
|
|
|
__END__ |