« blib/lib/KinoSearch1/Index/CompoundFileWriter.pm
↑ Summary
blib/lib/KinoSearch1/Search/MultiSearcher.pm »
| 1 | package KinoSearch1::Util::ToStringUtils; | ||||||||||
| 2 | 18 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | 18 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 18 | ▶ | use KinoSearch1::Util::ToolSet; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | 18 | ▶ | use base qw( Exporter ); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | |||||||||||
| 7 | 18 | our @EXPORT_OK = qw( boost_to_string ); | |||||||||
| 8 | |||||||||||
| 9 | # return a stringified numerical boost if it actually does anything. | ||||||||||
| 10 | 0 | ▶ | sub boost_to_string { | ||||||||
|
Subroutine
boost_to_string: not called CC=2 SCAR=17.9
Pod
undocumented
| |||||||||||
| 11 | 0 | my $boost = shift; | |||||||||
| 12 | 0 | ▶ | return $boost == 1 ? '' : "^$boost"; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 13 | } | ||||||||||
| 14 | |||||||||||
| 15 | 18 | 1; | |||||||||
| 16 | |||||||||||
| 17 | __END__ | ||||||||||