line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Catmandu::Fix::upcase; |
2
|
|
|
|
|
|
|
|
3
|
8
|
|
|
8
|
|
105725
|
use Catmandu::Sane; |
|
8
|
|
|
|
|
23
|
|
|
8
|
|
|
|
|
65
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
our $VERSION = '1.2020'; |
6
|
|
|
|
|
|
|
|
7
|
8
|
|
|
8
|
|
60
|
use Moo; |
|
8
|
|
|
|
|
25
|
|
|
8
|
|
|
|
|
57
|
|
8
|
8
|
|
|
8
|
|
4008
|
use Catmandu::Util::Path qw(as_path); |
|
8
|
|
|
|
|
19
|
|
|
8
|
|
|
|
|
532
|
|
9
|
8
|
|
|
8
|
|
59
|
use Catmandu::Util qw(as_utf8); |
|
8
|
|
|
|
|
15
|
|
|
8
|
|
|
|
|
394
|
|
10
|
8
|
|
|
8
|
|
66
|
use namespace::clean; |
|
8
|
|
|
|
|
22
|
|
|
8
|
|
|
|
|
46
|
|
11
|
8
|
|
|
8
|
|
3662
|
use Catmandu::Fix::Has; |
|
8
|
|
|
|
|
20
|
|
|
8
|
|
|
|
|
62
|
|
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
with 'Catmandu::Fix::Builder'; |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
has path => (fix_arg => 1); |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
sub _build_fixer { |
18
|
13
|
|
|
13
|
|
144
|
my ($self) = @_; |
19
|
13
|
|
|
16
|
|
70
|
as_path($self->path)->updater(if_string => sub {uc(as_utf8($_[0]))}); |
|
16
|
|
|
|
|
64
|
|
20
|
|
|
|
|
|
|
} |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
1; |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
__END__ |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
=pod |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
=head1 NAME |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
Catmandu::Fix::upcase - uppercase the value of a field |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
=head1 SYNOPSIS |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
# Uppercase the value of 'foo'. E.g. foo => 'bar' |
35
|
|
|
|
|
|
|
upcase(foo) # foo => 'BAR' |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
=head1 SEE ALSO |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
L<Catmandu::Fix> |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
=cut |