line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package HTML::Pictogram::MobileJp::Unicode; |
2
|
1
|
|
|
1
|
|
7228
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
29
|
|
3
|
1
|
|
|
1
|
|
4
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
49
|
|
4
|
1
|
|
|
1
|
|
24
|
use 5.00800; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
27
|
|
5
|
1
|
|
|
1
|
|
584
|
use HTML::Pictogram::MobileJp::Unicode::Map; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
166
|
|
6
|
1
|
|
|
1
|
|
586
|
use HTML::Pictogram::MobileJp::Util qw/is_iphone/; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
3467
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
sub convert { |
9
|
7
|
|
|
7
|
0
|
51017
|
my ( $class, $ma, $html ) = @_; |
10
|
|
|
|
|
|
|
|
11
|
7
|
|
|
|
|
57
|
$html =~ s{(([0-9a-f]{4});)}{ |
12
|
7
|
100
|
100
|
|
|
41
|
if ($ma->is_docomo) { |
|
|
100
|
|
|
|
|
|
|
|
100
|
|
|
|
|
|
13
|
2
|
|
|
|
|
15
|
$1; |
14
|
|
|
|
|
|
|
} elsif ($ma->is_softbank || is_iphone($ma->user_agent)) { |
15
|
3
|
100
|
|
|
|
45
|
if (my $e = $SOFTBANK->{$2}) { |
16
|
2
|
|
|
|
|
11
|
"$e;"; |
17
|
|
|
|
|
|
|
} else { |
18
|
1
|
|
|
|
|
5
|
$1; |
19
|
|
|
|
|
|
|
} |
20
|
|
|
|
|
|
|
} elsif ($ma->is_ezweb) { |
21
|
1
|
50
|
|
|
|
12
|
if (my $e = $EZWEB->{$2}) { |
22
|
1
|
|
|
|
|
9
|
sprintf '', $e; |
23
|
|
|
|
|
|
|
} else { |
24
|
0
|
|
|
|
|
0
|
$1; |
25
|
|
|
|
|
|
|
} |
26
|
|
|
|
|
|
|
} else { |
27
|
|
|
|
|
|
|
# non-mobile |
28
|
1
|
|
|
|
|
11
|
$1; |
29
|
|
|
|
|
|
|
} |
30
|
|
|
|
|
|
|
}gei; |
31
|
|
|
|
|
|
|
|
32
|
7
|
|
|
|
|
44
|
$html; |
33
|
|
|
|
|
|
|
} |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
1; |
36
|
|
|
|
|
|
|
__END__ |