Plucene/Analysis/LowerCaseFilter.pm untested

filter: Statementstmt 0.0% 0 / 13 Branchbran n/a Conditioncond 0.0% 0 / 2 MC/DCmcdc 0.0% 0 / 1 Subroutinesub 0.0% 0 / 4 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 21 CC 1 SCAR 6.9
CC
1
Cov
0%
next
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package Plucene::Analysis::LowerCaseFilter;
2  
3 =head1 NAME
4  
5 Plucene::Analysis::LowerCaseFilter - normalises token text to lower case
6  
7 =head1 SYNOPSIS
8  
9 # usa Plucene::Analysis::TokenFilter
10  
11 my $next = $l_case_filter->next;
12  
13 =head1 DESCRIPTION
14  
15 This normalises token text to lower case.
16  
17 =head1 METHODS
18  
19 =cut
20  
21 use strict;
22 use warnings;
23  
24 use base 'Plucene::Analysis::TokenFilter';
25  
26 =head2 next
27  
28 my $next = $l_case_filter->next;
29  
30 This will return the next token in the stream, or undef at the end of string.
31
32 =cut
33  
34 sub next {
35 my $self = shift;
36 my $t = $self->input->next() or return;
37 $t->text(lc $t->text);
38 return $t;
39 }
40  
41 1;