line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package DTL::Fast::Filter::Capfirst; |
2
|
2
|
|
|
2
|
|
1660
|
use strict; use utf8; use warnings FATAL => 'all'; |
|
2
|
|
|
2
|
|
5
|
|
|
2
|
|
|
2
|
|
65
|
|
|
2
|
|
|
|
|
12
|
|
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
15
|
|
|
2
|
|
|
|
|
63
|
|
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
94
|
|
3
|
2
|
|
|
2
|
|
14
|
use parent 'DTL::Fast::Filter'; |
|
2
|
|
|
|
|
7
|
|
|
2
|
|
|
|
|
15
|
|
4
|
|
|
|
|
|
|
|
5
|
2
|
|
|
2
|
|
127
|
use locale; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
19
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
$DTL::Fast::FILTER_HANDLERS{'capfirst'} = __PACKAGE__; |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
#@Override |
10
|
|
|
|
|
|
|
sub filter |
11
|
|
|
|
|
|
|
{ |
12
|
2
|
|
|
2
|
0
|
5
|
shift; # self |
13
|
2
|
|
|
|
|
3
|
shift; # filter_manager |
14
|
2
|
|
|
|
|
7
|
my $value = shift; |
15
|
2
|
|
|
|
|
36
|
$value =~ s/^(.)/\U$1/s; |
16
|
2
|
|
|
|
|
16
|
return $value; |
17
|
|
|
|
|
|
|
} |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
1; |