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