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