line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package HTTP::MobileAttribute::Plugin::Encoding; |
2
|
1
|
|
|
1
|
|
543
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
27
|
|
3
|
1
|
|
|
1
|
|
4
|
use warnings; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
29
|
|
4
|
1
|
|
|
1
|
|
4
|
use base qw/HTTP::MobileAttribute::Plugin/; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
8
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
__PACKAGE__->depends([qw/XHTMLCompliant IS::ThirdForce/]); |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
sub can_display_utf8 :Method { |
9
|
8
|
|
|
8
|
1
|
75
|
my ($self, $c) = @_; |
10
|
8
|
100
|
|
|
|
26
|
$c->encoding =~ /utf-?8/ ? 1 : 0; |
11
|
1
|
|
|
1
|
|
878
|
} |
|
1
|
|
|
|
|
1305
|
|
|
1
|
|
|
|
|
6
|
|
12
|
|
|
|
|
|
|
|
13
|
1
|
|
|
1
|
0
|
280
|
sub encoding_non_mobile :CarrierMethod('NonMobile', 'encoding') { 'utf-8' } |
|
1
|
|
|
2
|
|
2
|
|
|
1
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
47
|
|
14
|
1
|
|
|
1
|
0
|
193
|
sub encoding_airh_phone :CarrierMethod('AirHPhone', 'encoding') { 'x-sjis-airh' } |
|
1
|
|
|
2
|
|
2
|
|
|
1
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
32
|
|
15
|
1
|
|
|
1
|
0
|
181
|
sub encoding_ezweb :CarrierMethod('EZweb', 'encoding') { 'x-sjis-ezweb-auto' } |
|
1
|
|
|
4
|
|
2
|
|
|
1
|
|
|
|
|
3
|
|
|
4
|
|
|
|
|
54
|
|
16
|
|
|
|
|
|
|
sub encoding_thirdforce :CarrierMethod('ThirdForce', 'encoding') { |
17
|
4
|
100
|
|
4
|
0
|
27
|
$_[1]->is_type_3gc ? 'x-utf8-vodafone' : 'x-sjis-vodafone' |
18
|
1
|
|
|
1
|
|
180
|
} |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
11
|
|
19
|
|
|
|
|
|
|
sub encoding_docomo :CarrierMethod('DoCoMo', 'encoding') { |
20
|
4
|
100
|
|
4
|
0
|
19
|
"x-@{[ $_[1]->xhtml_compliant ? 'utf8' : 'sjis' ]}-docomo"; |
|
4
|
|
|
|
|
13
|
|
21
|
1
|
|
|
1
|
|
210
|
} |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
3
|
|
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
1; |
24
|
|
|
|
|
|
|
__END__ |