line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Duadua::Parser::Browser::GoogleApp; |
2
|
6
|
|
|
6
|
|
939
|
use strict; |
|
6
|
|
|
|
|
11
|
|
|
6
|
|
|
|
|
176
|
|
3
|
6
|
|
|
6
|
|
27
|
use warnings; |
|
6
|
|
|
|
|
15
|
|
|
6
|
|
|
|
|
146
|
|
4
|
6
|
|
|
6
|
|
30
|
use Duadua::Util qw//; |
|
6
|
|
|
|
|
9
|
|
|
6
|
|
|
|
|
1084
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
sub try { |
7
|
138
|
|
|
138
|
1
|
263
|
my ($class, $d) = @_; |
8
|
|
|
|
|
|
|
|
9
|
138
|
100
|
100
|
|
|
278
|
if ( index($d->ua, ' AppleWebKit/') > -1 && index($d->ua, ') GSA/') > -1 ) { |
10
|
2
|
|
|
|
|
7
|
my $h = { |
11
|
|
|
|
|
|
|
name => 'Google App', |
12
|
|
|
|
|
|
|
}; |
13
|
|
|
|
|
|
|
|
14
|
2
|
100
|
|
|
|
7
|
if ($d->opt_version) { |
15
|
1
|
|
|
|
|
3
|
my ($version) = ($d->ua =~ m!\) GSA/([\d.]+)!); |
16
|
1
|
50
|
|
|
|
8
|
$h->{version} = $version if $version; |
17
|
|
|
|
|
|
|
} |
18
|
|
|
|
|
|
|
|
19
|
2
|
|
|
|
|
7
|
return Duadua::Util->set_os($d, $h); |
20
|
|
|
|
|
|
|
} |
21
|
|
|
|
|
|
|
} |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
1; |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
__END__ |