line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Duadua::Parser::Browser::YahooJapanAppBrowser; |
2
|
6
|
|
|
6
|
|
39
|
use strict; |
|
6
|
|
|
|
|
14
|
|
|
6
|
|
|
|
|
201
|
|
3
|
6
|
|
|
6
|
|
33
|
use warnings; |
|
6
|
|
|
|
|
12
|
|
|
6
|
|
|
|
|
130
|
|
4
|
6
|
|
|
6
|
|
42
|
use Duadua::Util; |
|
6
|
|
|
|
|
15
|
|
|
6
|
|
|
|
|
1088
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
sub try { |
7
|
306
|
|
|
306
|
1
|
623
|
my ($class, $d) = @_; |
8
|
|
|
|
|
|
|
|
9
|
306
|
100
|
100
|
|
|
580
|
if ( index($d->ua, 'Mozilla/') == 0 && index($d->ua, ' YJApp-') > -1 ) { |
10
|
4
|
|
|
|
|
14
|
my $h = { |
11
|
|
|
|
|
|
|
name => 'Browser of Yahoo! JAPAN App', |
12
|
|
|
|
|
|
|
}; |
13
|
|
|
|
|
|
|
|
14
|
4
|
100
|
|
|
|
16
|
if ($d->opt_version) { |
15
|
2
|
|
|
|
|
6
|
my ($version) = ($d->ua =~ m! jp\.co\.yahoo\.[^/\s]+/([\d.]+)!); |
16
|
2
|
50
|
|
|
|
12
|
$h->{version} = $version if $version; |
17
|
|
|
|
|
|
|
} |
18
|
|
|
|
|
|
|
|
19
|
4
|
|
|
|
|
17
|
return Duadua::Util->set_os($d, $h); |
20
|
|
|
|
|
|
|
} |
21
|
|
|
|
|
|
|
} |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
1; |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
__END__ |