| 1 | package KinoSearch1::Highlight::SimpleHTMLFormatter; | ||
| 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( KinoSearch1::Highlight::Formatter ); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | |||
| 7 | 18 | ▶ | BEGIN { |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | 18 | __PACKAGE__->init_instance_vars( | |
| 9 | pre_tag => '<strong>', | ||
| 10 | post_tag => '</strong>', | ||
| 11 | ); | ||
| 12 | } | ||
| 13 | |||
| 14 | 0 | ▶ | sub highlight { |
|
Subroutine
highlight: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 15 | 0 | my ( $self, $text ) = @_; | |
| 16 | 0 | return "$self->{pre_tag}$text$self->{post_tag}"; | |
| 17 | } | ||
| 18 | |||
| 19 | 18 | 1; | |
| 20 | |||
| 21 | __END__ | ||