line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Regexp::Common::URI::wais; |
2
|
|
|
|
|
|
|
|
3
|
72
|
|
|
72
|
|
484
|
use Regexp::Common qw /pattern clean no_defaults/; |
|
72
|
|
|
|
|
161
|
|
|
72
|
|
|
|
|
546
|
|
4
|
72
|
|
|
72
|
|
436
|
use Regexp::Common::URI qw /register_uri/; |
|
72
|
|
|
|
|
315
|
|
|
72
|
|
|
|
|
3126
|
|
5
|
72
|
|
|
|
|
6952
|
use Regexp::Common::URI::RFC1738 qw /$host $port |
6
|
72
|
|
|
72
|
|
462
|
$search $database $wtype $wpath/; |
|
72
|
|
|
|
|
148
|
|
7
|
|
|
|
|
|
|
|
8
|
72
|
|
|
72
|
|
524
|
use strict; |
|
72
|
|
|
|
|
192
|
|
|
72
|
|
|
|
|
1594
|
|
9
|
72
|
|
|
72
|
|
412
|
use warnings; |
|
72
|
|
|
|
|
156
|
|
|
72
|
|
|
|
|
1962
|
|
10
|
|
|
|
|
|
|
|
11
|
72
|
|
|
72
|
|
375
|
use vars qw /$VERSION/; |
|
72
|
|
|
|
|
205
|
|
|
72
|
|
|
|
|
7652
|
|
12
|
|
|
|
|
|
|
$VERSION = '2017060201'; |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
my $scheme = 'wais'; |
16
|
|
|
|
|
|
|
my $uri = "(?k:(?k:$scheme)://(?k:$host)(?::(?k:$port))?/(?k:(?k:$database)" |
17
|
|
|
|
|
|
|
. "(?k:[?](?k:$search)|/(?k:$wtype)/(?k:$wpath))?))"; |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
register_uri $scheme => $uri; |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
pattern name => [qw (URI WAIS)], |
22
|
|
|
|
|
|
|
create => $uri, |
23
|
|
|
|
|
|
|
; |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
1; |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
__END__ |