line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Value::Object::DomainLabel; |
2
|
|
|
|
|
|
|
|
3
|
3
|
|
|
3
|
|
30074
|
use warnings; |
|
3
|
|
|
|
|
5
|
|
|
3
|
|
|
|
|
73
|
|
4
|
3
|
|
|
3
|
|
13
|
use strict; |
|
3
|
|
|
|
|
6
|
|
|
3
|
|
|
|
|
54
|
|
5
|
|
|
|
|
|
|
|
6
|
3
|
|
|
3
|
|
1104
|
use Value::Object::ValidationUtils; |
|
3
|
|
|
|
|
5
|
|
|
3
|
|
|
|
|
108
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
our $VERSION = '0.13'; |
9
|
|
|
|
|
|
|
|
10
|
3
|
|
|
3
|
|
1334
|
use parent 'Value::Object'; |
|
3
|
|
|
|
|
549
|
|
|
3
|
|
|
|
|
15
|
|
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
sub _why_invalid |
13
|
|
|
|
|
|
|
{ |
14
|
9
|
|
|
9
|
|
125
|
my ($self, $value) = @_; |
15
|
9
|
|
|
|
|
28
|
my ($why, $long, $data) = Value::Object::ValidationUtils::why_invalid_domain_label( $value ); |
16
|
9
|
100
|
|
|
|
33
|
return ( __PACKAGE__ . ": $why", $long, $data ) if defined $why; |
17
|
6
|
|
|
|
|
14
|
return; |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
sub new_canonical |
21
|
|
|
|
|
|
|
{ |
22
|
2
|
|
|
2
|
1
|
998
|
my ($class, $value) = @_; |
23
|
2
|
|
|
|
|
5
|
$value =~ tr/A-Z/a-z/; |
24
|
2
|
|
|
|
|
8
|
return $class->new( $value ); |
25
|
|
|
|
|
|
|
} |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
1; |
28
|
|
|
|
|
|
|
__END__ |