line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Template::Plugin::String::Truncate; |
2
|
|
|
|
|
|
|
BEGIN { |
3
|
1
|
|
|
1
|
|
53736
|
$Template::Plugin::String::Truncate::VERSION = '0.02'; |
4
|
|
|
|
|
|
|
} |
5
|
1
|
|
|
1
|
|
9
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
37
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
# ABSTRACT: String::Truncate functions for Template Toolkit |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
require Template::Plugin; |
10
|
1
|
|
|
1
|
|
4
|
use base qw(Template::Plugin); |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
799
|
|
11
|
|
|
|
|
|
|
|
12
|
1
|
|
|
1
|
|
23707
|
use String::Truncate qw(); |
|
1
|
|
|
|
|
112134
|
|
|
1
|
|
|
|
|
262
|
|
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
|
15
|
2
|
|
|
2
|
1
|
10146
|
sub elide { shift; return String::Truncate::elide(@_) } |
|
2
|
|
|
|
|
12
|
|
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
|
18
|
1
|
|
|
1
|
1
|
129964
|
sub trunc { shift; return String::Truncate::trunc(@_) } |
|
1
|
|
|
|
|
10
|
|
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
1; |
21
|
|
|
|
|
|
|
__END__ |