line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package HTTP::MobileAttribute::Plugin::XHTMLCompliant; |
2
|
5
|
|
|
5
|
|
4111
|
use strict; |
|
5
|
|
|
|
|
13
|
|
|
5
|
|
|
|
|
197
|
|
3
|
5
|
|
|
5
|
|
66
|
use warnings; |
|
5
|
|
|
|
|
11
|
|
|
5
|
|
|
|
|
170
|
|
4
|
5
|
|
|
5
|
|
30
|
use base qw/HTTP::MobileAttribute::Plugin/; |
|
5
|
|
|
|
|
9
|
|
|
5
|
|
|
|
|
1174
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
__PACKAGE__->depends([qw/IS::DoCoMo IS::ThirdForce/]); |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
sub docomo :CarrierMethod('DoCoMo', 'xhtml_compliant') { |
9
|
37
|
|
|
37
|
0
|
326
|
my ($self, $c) = @_; |
10
|
|
|
|
|
|
|
|
11
|
37
|
100
|
100
|
|
|
157
|
return ( $c->is_foma && $c->model !~ qr/(?:D210i|SO210i)|503i|211i|SH251i|692i|200[12]|2101V/ ) |
12
|
|
|
|
|
|
|
? 1 |
13
|
|
|
|
|
|
|
: 0; |
14
|
5
|
|
|
5
|
|
5199
|
} |
|
5
|
|
|
|
|
5061
|
|
|
5
|
|
|
|
|
35
|
|
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
sub ezweb :CarrierMethod('EZweb', 'xhtml_compliant') { |
17
|
18
|
|
|
18
|
0
|
227
|
my ($self, $c) = @_; |
18
|
|
|
|
|
|
|
|
19
|
18
|
100
|
|
|
|
55
|
if ( $c->user_agent =~ /^KDDI\-/ ) { |
20
|
9
|
|
|
|
|
82
|
return 1; |
21
|
|
|
|
|
|
|
} else { |
22
|
9
|
|
|
|
|
54
|
return; |
23
|
|
|
|
|
|
|
} |
24
|
5
|
|
|
5
|
|
1945
|
} |
|
5
|
|
|
|
|
14
|
|
|
5
|
|
|
|
|
25
|
|
25
|
|
|
|
|
|
|
|
26
|
5
|
|
|
5
|
0
|
1293
|
sub non_mobile :CarrierMethod('NonMobile', 'xhtml_compliant') { 1 } |
|
5
|
|
|
164
|
|
13
|
|
|
5
|
|
|
|
|
24
|
|
|
164
|
|
|
|
|
2850
|
|
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
sub third_force :CarrierMethod('ThirdForce', 'xhtml_compliant') { |
29
|
6
|
|
|
6
|
0
|
72
|
my ($self, $c) = @_; |
30
|
6
|
100
|
100
|
|
|
25
|
return ( $c->is_type_w || $c->is_type_3gc ) ? 1 : 0; |
31
|
5
|
|
|
5
|
|
1208
|
} |
|
5
|
|
|
|
|
14
|
|
|
5
|
|
|
|
|
24
|
|
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
1; |
34
|
|
|
|
|
|
|
__END__ |