line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package KinoSearch1::Util::ToStringUtils; |
2
|
18
|
|
|
18
|
|
98
|
use strict; |
|
18
|
|
|
|
|
42
|
|
|
18
|
|
|
|
|
618
|
|
3
|
18
|
|
|
18
|
|
97
|
use warnings; |
|
18
|
|
|
|
|
44
|
|
|
18
|
|
|
|
|
560
|
|
4
|
18
|
|
|
18
|
|
95
|
use KinoSearch1::Util::ToolSet; |
|
18
|
|
|
|
|
45
|
|
|
18
|
|
|
|
|
2610
|
|
5
|
18
|
|
|
18
|
|
106
|
use base qw( Exporter ); |
|
18
|
|
|
|
|
39
|
|
|
18
|
|
|
|
|
2612
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
our @EXPORT_OK = qw( boost_to_string ); |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
# return a stringified numerical boost if it actually does anything. |
10
|
|
|
|
|
|
|
sub boost_to_string { |
11
|
0
|
|
|
0
|
0
|
|
my $boost = shift; |
12
|
0
|
0
|
|
|
|
|
return $boost == 1 ? '' : "^$boost"; |
13
|
|
|
|
|
|
|
} |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
1; |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
__END__ |