line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
4
|
|
|
4
|
|
772
|
use strict; |
|
4
|
|
|
|
|
8
|
|
|
4
|
|
|
|
|
234
|
|
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
package HTML::FormFu::Filter::UpperCase; |
4
|
|
|
|
|
|
|
$HTML::FormFu::Filter::UpperCase::VERSION = '2.07'; |
5
|
|
|
|
|
|
|
# ABSTRACT: filter transforming to upper case |
6
|
|
|
|
|
|
|
|
7
|
4
|
|
|
4
|
|
22
|
use Moose; |
|
4
|
|
|
|
|
9
|
|
|
4
|
|
|
|
|
30
|
|
8
|
|
|
|
|
|
|
extends 'HTML::FormFu::Filter'; |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
sub filter { |
11
|
3
|
|
|
3
|
0
|
15
|
my ( $self, $value ) = @_; |
12
|
|
|
|
|
|
|
|
13
|
3
|
50
|
|
|
|
20
|
return if !defined $value; |
14
|
|
|
|
|
|
|
|
15
|
3
|
|
|
|
|
25
|
return uc $value; |
16
|
|
|
|
|
|
|
} |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
__PACKAGE__->meta->make_immutable; |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
1; |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
__END__ |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
=pod |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
=encoding UTF-8 |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
=head1 NAME |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
HTML::FormFu::Filter::UpperCase - filter transforming to upper case |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
=head1 VERSION |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
version 2.07 |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
=head1 DESCRIPTION |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
UpperCase transforming filter. |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
=head1 AUTHOR |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
Carl Franks, C<cfranks@cpan.org> |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
Based on the original source code of L<HTML::Widget::Filter::UpperCase>, by |
45
|
|
|
|
|
|
|
Lyo Kato, C<lyo.kato@gmail.com> |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
=head1 LICENSE |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
This library is free software, you can redistribute it and/or modify it under |
50
|
|
|
|
|
|
|
the same terms as Perl itself. |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
=head1 AUTHOR |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
Carl Franks <cpan@fireartist.com> |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
This software is copyright (c) 2018 by Carl Franks. |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
61
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
=cut |