line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Regexp::Common::URI::RFC1035; |
2
|
|
|
|
|
|
|
|
3
|
71
|
|
|
71
|
|
235
|
use Regexp::Common qw /pattern clean no_defaults/; |
|
71
|
|
|
|
|
71
|
|
|
71
|
|
|
|
|
337
|
|
4
|
|
|
|
|
|
|
|
5
|
71
|
|
|
71
|
|
251
|
use strict; |
|
71
|
|
|
|
|
83
|
|
|
71
|
|
|
|
|
1780
|
|
6
|
71
|
|
|
71
|
|
781
|
use warnings; |
|
71
|
|
|
|
|
79
|
|
|
71
|
|
|
|
|
1478
|
|
7
|
|
|
|
|
|
|
|
8
|
71
|
|
|
71
|
|
219
|
use vars qw /$VERSION/; |
|
71
|
|
|
|
|
74
|
|
|
71
|
|
|
|
|
3451
|
|
9
|
|
|
|
|
|
|
$VERSION = '2016060801'; |
10
|
|
|
|
|
|
|
|
11
|
71
|
|
|
71
|
|
923
|
use vars qw /@EXPORT @EXPORT_OK %EXPORT_TAGS @ISA/; |
|
71
|
|
|
|
|
77
|
|
|
71
|
|
|
|
|
3672
|
|
12
|
|
|
|
|
|
|
|
13
|
71
|
|
|
71
|
|
225
|
use Exporter (); |
|
71
|
|
|
|
|
114
|
|
|
71
|
|
|
|
|
4680
|
|
14
|
|
|
|
|
|
|
@ISA = qw /Exporter/; |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
my %vars; |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
BEGIN { |
19
|
71
|
|
|
71
|
|
216
|
$vars {low} = [qw /$digit $letter $let_dig $let_dig_hyp $ldh_str/]; |
20
|
71
|
|
|
|
|
145
|
$vars {parts} = [qw /$label $subdomain/]; |
21
|
71
|
|
|
|
|
2005
|
$vars {domain} = [qw /$domain/]; |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
71
|
|
|
71
|
|
254
|
use vars map {@$_} values %vars; |
|
71
|
|
|
|
|
77
|
|
|
71
|
|
|
|
|
167
|
|
|
213
|
|
|
|
|
11746
|
|
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
@EXPORT = qw /$host/; |
27
|
|
|
|
|
|
|
@EXPORT_OK = map {@$_} values %vars; |
28
|
|
|
|
|
|
|
%EXPORT_TAGS = (%vars, ALL => [@EXPORT_OK]); |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
# RFC 1035. |
31
|
|
|
|
|
|
|
$digit = "[0-9]"; |
32
|
|
|
|
|
|
|
$letter = "[A-Za-z]"; |
33
|
|
|
|
|
|
|
$let_dig = "[A-Za-z0-9]"; |
34
|
|
|
|
|
|
|
$let_dig_hyp = "[-A-Za-z0-9]"; |
35
|
|
|
|
|
|
|
$ldh_str = "(?:[-A-Za-z0-9]+)"; |
36
|
|
|
|
|
|
|
$label = "(?:$letter(?:(?:$ldh_str){0,61}$let_dig)?)"; |
37
|
|
|
|
|
|
|
$subdomain = "(?:$label(?:[.]$label)*)"; |
38
|
|
|
|
|
|
|
$domain = "(?: |(?:$subdomain))"; |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
1; |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
__END__ |