| 1 | ##-*- Mode: CPerl -*- | ||||||||||||||||||||||||||||||||||||||||||
| 2 | |||||||||||||||||||||||||||||||||||||||||||
| 3 | ##====================================================================== | ||||||||||||||||||||||||||||||||||||||||||
| 4 | ## top-level | ||||||||||||||||||||||||||||||||||||||||||
| 5 | package DDC::PP::CQFilter; | ||||||||||||||||||||||||||||||||||||||||||
| 6 | 20 | ▶ | use DDC::PP::Object; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 7 | 20 | ▶ | use DDC::PP::Constants; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 8 | 20 | ▶ | use DDC::Utils qw(); | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 9 | 20 | ▶ | use strict; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 10 | |||||||||||||||||||||||||||||||||||||||||||
| 11 | ##====================================================================== | ||||||||||||||||||||||||||||||||||||||||||
| 12 | ## CQFilter | ||||||||||||||||||||||||||||||||||||||||||
| 13 | package DDC::PP::CQFilter; | ||||||||||||||||||||||||||||||||||||||||||
| 14 | 20 | ▶ | use strict; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 15 | 20 | our @ISA = qw(DDC::PP::Object); | |||||||||||||||||||||||||||||||||||||||||
| 16 | |||||||||||||||||||||||||||||||||||||||||||
| 17 | 34 | ▶ | sub new { | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
new: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||||||||||||||||||||||||||||||||||
| 18 | 34 | my ($that,%opts) = @_; | |||||||||||||||||||||||||||||||||||||||||
| 19 | 34 | return $that->SUPER::new(%opts); | |||||||||||||||||||||||||||||||||||||||||
| 20 | } | ||||||||||||||||||||||||||||||||||||||||||
| 21 | |||||||||||||||||||||||||||||||||||||||||||
| 22 | 0 | ▶ | sub toString { return "#FILTER[?]"; } | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
toString: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||||||||||||||||||||||||
| 23 | |||||||||||||||||||||||||||||||||||||||||||
| 24 | ##====================================================================== | ||||||||||||||||||||||||||||||||||||||||||
| 25 | package DDC::PP::CQFSort; | ||||||||||||||||||||||||||||||||||||||||||
| 26 | 20 | ▶ | use strict; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 27 | 20 | our @ISA = qw(DDC::PP::CQFilter); | |||||||||||||||||||||||||||||||||||||||||
| 28 | |||||||||||||||||||||||||||||||||||||||||||
| 29 | 20 | __PACKAGE__->defprop('Arg0'); | |||||||||||||||||||||||||||||||||||||||||
| 30 | 20 | __PACKAGE__->defprop('Arg1'); | |||||||||||||||||||||||||||||||||||||||||
| 31 | 20 | __PACKAGE__->defprop('Arg2'); | |||||||||||||||||||||||||||||||||||||||||
| 32 | 20 | __PACKAGE__->defprop('Type'); | |||||||||||||||||||||||||||||||||||||||||
| 33 | |||||||||||||||||||||||||||||||||||||||||||
| 34 | 0 | ▶ | sub defaultSort { return 'NoSort'; } | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
defaultSort: not called CC=1 SCAR=6.9
| |||||||||||||||||||||||||||||||||||||||||||
| 35 | 34 | ▶ | sub new { | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
new: called CC=2 SCAR=6.9
| |||||||||||||||||||||||||||||||||||||||||||
| 36 | 34 | my ($that,$sort,$arg0,$arg1,$arg2,%opts) = @_; | |||||||||||||||||||||||||||||||||||||||||
| 37 | 34 | ▶ | return $that->SUPER::new(Type=>(defined($sort) ? $sort : $DDC::PP::HitSortEnum{$that->defaultSort}), | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 38 | Arg0=>$arg0, | ||||||||||||||||||||||||||||||||||||||||||
| 39 | Arg1=>$arg1, | ||||||||||||||||||||||||||||||||||||||||||
| 40 | Arg2=>$arg2, | ||||||||||||||||||||||||||||||||||||||||||
| 41 | %opts); | ||||||||||||||||||||||||||||||||||||||||||
| 42 | } | ||||||||||||||||||||||||||||||||||||||||||
| 43 | 0 | ▶ | sub new_i { | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
new_i: not called CC=1 SCAR=6.9
| |||||||||||||||||||||||||||||||||||||||||||
| 44 | 0 | my ($that,$sort,$arg0,$arg1,$arg2,%opts) = @_; | |||||||||||||||||||||||||||||||||||||||||
| 45 | 0 | return $that->new($sort,$arg0,($arg1+0),($arg2+0),%opts); | |||||||||||||||||||||||||||||||||||||||||
| 46 | } | ||||||||||||||||||||||||||||||||||||||||||
| 47 | |||||||||||||||||||||||||||||||||||||||||||
| 48 | 6 | ▶ | sub argString { | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
argString: called CC=3 SCAR=14.2
| |||||||||||||||||||||||||||||||||||||||||||
| 49 | 6 | ▶ | return !defined($_[1]) || $_[1] eq '' ? '' : DDC::Utils::escapeq($_[1]); | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
not defined $_[1] or $_[1] eq ""
MC/DC0%0/2
not defined $_[1] or $_[1] eq ""
not defined $_[1]
$_[1] eq ""
Truth table33%1/3
not(A) or B
A= not defined $_[1]B= $_[1] eq ""
| |||||||||||||||||||||||||||||||||||||||||||
| 50 | } | ||||||||||||||||||||||||||||||||||||||||||
| 51 | 16 | ▶ | sub argStringE { | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
argStringE: called CC=2 SCAR=7.6
| |||||||||||||||||||||||||||||||||||||||||||
| 52 | 16 | ▶ | return DDC::Utils::escapeq(defined($_[1]) ? $_[1] : ''); | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 53 | } | ||||||||||||||||||||||||||||||||||||||||||
| 54 | 6 | ▶ | sub toString { | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
toString: called CC=7 SCAR=20.5
| |||||||||||||||||||||||||||||||||||||||||||
| 55 | 6 | my $f = shift; | |||||||||||||||||||||||||||||||||||||||||
| 56 | my $args = join(',', | ||||||||||||||||||||||||||||||||||||||||||
| 57 | ($f->{Arg0} ? $f->{Arg0} : qw()), | ||||||||||||||||||||||||||||||||||||||||||
| 58 | ($f->{Arg1} || $f->{Arg2} | ||||||||||||||||||||||||||||||||||||||||||
| 59 | ? ((defined($f->{Arg1}) ? $f->{Arg1} : ''), | ||||||||||||||||||||||||||||||||||||||||||
| 60 | 6 | ▶ | (defined($f->{Arg2}) ? $f->{Arg2} : '')) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 4 branches
Condition66%2/3
$f->{"Arg1"} or $f->{"Arg2"}
MC/DC50%1/2
$f->{"Arg1"} or $f->{"Arg2"}
$f->{"Arg1"}
$f->{"Arg2"}
Truth table66%2/3
A or B
A= $f->{"Arg1"}B= $f->{"Arg2"}
| |||||||||||||||||||||||||||||||||||||||||||
| 61 | : qw()) | ||||||||||||||||||||||||||||||||||||||||||
| 62 | ); | ||||||||||||||||||||||||||||||||||||||||||
| 63 | 6 | ▶ | return '#'.uc($DDC::PP::HitSortEnumStrings[$f->{Type}]).($args ? "[$args]" : ''); | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 64 | } | ||||||||||||||||||||||||||||||||||||||||||
| 65 | |||||||||||||||||||||||||||||||||||||||||||
| 66 | 12 | ▶ | sub jsonType { return (FilterType=>$DDC::PP::HitSortEnumStrings[$_[0]{Type}]); } | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
jsonType: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 67 | 12 | ▶ | sub jsonMinMax { return (Min=>$_[0]{Arg1}, Max=>$_[0]{Arg2}); } | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
jsonMinMax: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 68 | 12 | ▶ | sub jsonData { return ($_[0]->jsonType, $_[0]->jsonMinMax); } | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
jsonData: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 69 | |||||||||||||||||||||||||||||||||||||||||||
| 70 | ##-- ddc-compatible hash-conversion (for toJson()) | ||||||||||||||||||||||||||||||||||||||||||
| 71 | 16 | ▶ | sub toHash { | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
toHash: called CC=2 SCAR=7.1
| |||||||||||||||||||||||||||||||||||||||||||
| 72 | 16 | my ($obj,%opts) = @_; | |||||||||||||||||||||||||||||||||||||||||
| 73 | 16 | ▶ | return $obj->SUPER::toHash(%opts) if (!$opts{json}); | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 74 | 16 | return { class=>$obj->jsonClass, $obj->jsonData }; | |||||||||||||||||||||||||||||||||||||||||
| 75 | } | ||||||||||||||||||||||||||||||||||||||||||
| 76 | |||||||||||||||||||||||||||||||||||||||||||
| 77 | ##-- pseudo-accessors (for json) | ||||||||||||||||||||||||||||||||||||||||||
| 78 | 20 | __PACKAGE__->defalias('Min'=>'Arg1', 0,1); | |||||||||||||||||||||||||||||||||||||||||
| 79 | 20 | __PACKAGE__->defalias('Max'=>'Arg2', 0,1); | |||||||||||||||||||||||||||||||||||||||||
| 80 | #sub getFilterType { return $DDC::PP::HitSortEnumStrings[$_[0]{Type}]; } | ||||||||||||||||||||||||||||||||||||||||||
| 81 | 0 | ▶ | sub setFilterType { return $_[0]{Type} = $DDC::PP::HitSortEnum{$_[1]}; } | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
setFilterType: not called CC=1 SCAR=6.9
| |||||||||||||||||||||||||||||||||||||||||||
| 82 | |||||||||||||||||||||||||||||||||||||||||||
| 83 | |||||||||||||||||||||||||||||||||||||||||||
| 84 | ##====================================================================== | ||||||||||||||||||||||||||||||||||||||||||
| 85 | ## CQFRankSort | ||||||||||||||||||||||||||||||||||||||||||
| 86 | package DDC::PP::CQFRankSort; | ||||||||||||||||||||||||||||||||||||||||||
| 87 | 20 | ▶ | use strict; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 88 | 20 | our @ISA = qw(DDC::PP::CQFSort); | |||||||||||||||||||||||||||||||||||||||||
| 89 | |||||||||||||||||||||||||||||||||||||||||||
| 90 | 0 | ▶ | sub defaultSort { return 'GreaterByRank'; } | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
defaultSort: not called CC=1 SCAR=6.9
| |||||||||||||||||||||||||||||||||||||||||||
| 91 | 0 | ▶ | sub jsonMinMax { return qw(); } | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
jsonMinMax: not called CC=1 SCAR=6.9
| |||||||||||||||||||||||||||||||||||||||||||
| 92 | |||||||||||||||||||||||||||||||||||||||||||
| 93 | ##====================================================================== | ||||||||||||||||||||||||||||||||||||||||||
| 94 | ## CQFDateSort | ||||||||||||||||||||||||||||||||||||||||||
| 95 | package DDC::PP::CQFDateSort; | ||||||||||||||||||||||||||||||||||||||||||
| 96 | 20 | ▶ | use strict; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 97 | 20 | our @ISA = qw(DDC::PP::CQFSort); | |||||||||||||||||||||||||||||||||||||||||
| 98 | |||||||||||||||||||||||||||||||||||||||||||
| 99 | 0 | ▶ | sub defaultSort { return 'LessByDate' }; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
defaultSort: not called CC=1 SCAR=6.9
| |||||||||||||||||||||||||||||||||||||||||||
| 100 | 16 | ▶ | sub new { | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
new: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 101 | 16 | my ($that,$ftype,$lb,$ub,%opts) = @_; | |||||||||||||||||||||||||||||||||||||||||
| 102 | 16 | return $that->SUPER::new($ftype,'',$lb,$ub,%opts); | |||||||||||||||||||||||||||||||||||||||||
| 103 | } | ||||||||||||||||||||||||||||||||||||||||||
| 104 | |||||||||||||||||||||||||||||||||||||||||||
| 105 | ##====================================================================== | ||||||||||||||||||||||||||||||||||||||||||
| 106 | ## CQFSizeSort | ||||||||||||||||||||||||||||||||||||||||||
| 107 | package DDC::PP::CQFSizeSort; | ||||||||||||||||||||||||||||||||||||||||||
| 108 | 20 | ▶ | use strict; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 109 | 20 | our @ISA = qw(DDC::PP::CQFSort); | |||||||||||||||||||||||||||||||||||||||||
| 110 | |||||||||||||||||||||||||||||||||||||||||||
| 111 | 0 | ▶ | sub defaultSort { return 'LessBySize'; } | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
defaultSort: not called CC=1 SCAR=6.9
| |||||||||||||||||||||||||||||||||||||||||||
| 112 | 0 | ▶ | sub new { | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
new: not called CC=1 SCAR=6.9
| |||||||||||||||||||||||||||||||||||||||||||
| 113 | 0 | my ($that,$ftype,$lb,$ub,%opts) = @_; | |||||||||||||||||||||||||||||||||||||||||
| 114 | 0 | return $that->SUPER::new($ftype,'',$lb,$ub,%opts); | |||||||||||||||||||||||||||||||||||||||||
| 115 | } | ||||||||||||||||||||||||||||||||||||||||||
| 116 | |||||||||||||||||||||||||||||||||||||||||||
| 117 | ##====================================================================== | ||||||||||||||||||||||||||||||||||||||||||
| 118 | ## CQFRandomSort | ||||||||||||||||||||||||||||||||||||||||||
| 119 | package DDC::PP::CQFRandomSort; | ||||||||||||||||||||||||||||||||||||||||||
| 120 | 20 | ▶ | use strict; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 121 | 20 | our @ISA = qw(DDC::PP::CQFSort); | |||||||||||||||||||||||||||||||||||||||||
| 122 | |||||||||||||||||||||||||||||||||||||||||||
| 123 | 0 | ▶ | sub defaultSort { return 'RandomSort'; } | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
defaultSort: not called CC=1 SCAR=6.9
| |||||||||||||||||||||||||||||||||||||||||||
| 124 | 0 | ▶ | sub new { | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
new: not called CC=1 SCAR=6.9
| |||||||||||||||||||||||||||||||||||||||||||
| 125 | 0 | my ($that,$seed,%opts) = @_; | |||||||||||||||||||||||||||||||||||||||||
| 126 | 0 | return $that->SUPER::new(undef,'',$seed,'',%opts); | |||||||||||||||||||||||||||||||||||||||||
| 127 | } | ||||||||||||||||||||||||||||||||||||||||||
| 128 | 20 | *new_i = \&new; | |||||||||||||||||||||||||||||||||||||||||
| 129 | |||||||||||||||||||||||||||||||||||||||||||
| 130 | ##-- ddc-json compat | ||||||||||||||||||||||||||||||||||||||||||
| 131 | 20 | __PACKAGE__->defalias('Seed'=>'Arg1', 0,1); | |||||||||||||||||||||||||||||||||||||||||
| 132 | 0 | ▶ | sub jsonMinMax { return (Seed=>$_[0]{Arg1}); } | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
jsonMinMax: not called CC=1 SCAR=6.9
| |||||||||||||||||||||||||||||||||||||||||||
| 133 | |||||||||||||||||||||||||||||||||||||||||||
| 134 | ##====================================================================== | ||||||||||||||||||||||||||||||||||||||||||
| 135 | ## CQFBiblSort | ||||||||||||||||||||||||||||||||||||||||||
| 136 | package DDC::PP::CQFBiblSort; | ||||||||||||||||||||||||||||||||||||||||||
| 137 | 20 | ▶ | use strict; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 138 | 20 | our @ISA = qw(DDC::PP::CQFSort); | |||||||||||||||||||||||||||||||||||||||||
| 139 | |||||||||||||||||||||||||||||||||||||||||||
| 140 | 0 | ▶ | sub defaultSort { return 'LessByFreeBiblField'; } | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
defaultSort: not called CC=1 SCAR=6.9
| |||||||||||||||||||||||||||||||||||||||||||
| 141 | 0 | ▶ | sub new { | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
new: not called CC=1 SCAR=6.9
| |||||||||||||||||||||||||||||||||||||||||||
| 142 | 0 | my ($that,$ftype,$field,$lb,$ub,%opts) = @_; | |||||||||||||||||||||||||||||||||||||||||
| 143 | 0 | return $that->SUPER::new($ftype,$field,$lb,$ub,%opts); | |||||||||||||||||||||||||||||||||||||||||
| 144 | } | ||||||||||||||||||||||||||||||||||||||||||
| 145 | |||||||||||||||||||||||||||||||||||||||||||
| 146 | 0 | ▶ | sub toString { | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
toString: not called CC=3 SCAR=24.8
| |||||||||||||||||||||||||||||||||||||||||||
| 147 | 0 | my $f = shift; | |||||||||||||||||||||||||||||||||||||||||
| 148 | return ('#'.uc($DDC::PP::HitSortEnumStrings[$f->{Type}]) | ||||||||||||||||||||||||||||||||||||||||||
| 149 | .'['.join(',', | ||||||||||||||||||||||||||||||||||||||||||
| 150 | $f->argString($f->{Arg0}), | ||||||||||||||||||||||||||||||||||||||||||
| 151 | (defined($f->{Arg1}) || defined($f->{Arg2}) | ||||||||||||||||||||||||||||||||||||||||||
| 152 | 0 | ▶ | ? ($f->argString($f->{Arg1}),$f->argString($f->{Arg2})) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition0%0/3
defined $f->{"Arg1"} or defined $f->{"Arg2"}
MC/DC0%0/2
defined $f->{"Arg1"} or defined $f->{"Arg2"}
defined $f->{"Arg1"}
defined $f->{"Arg2"}
Truth table0%0/3
A or B
A= defined $f->{"Arg1"}B= defined $f->{"Arg2"}
| |||||||||||||||||||||||||||||||||||||||||||
| 153 | : qw()), | ||||||||||||||||||||||||||||||||||||||||||
| 154 | ) | ||||||||||||||||||||||||||||||||||||||||||
| 155 | .']'); | ||||||||||||||||||||||||||||||||||||||||||
| 156 | } | ||||||||||||||||||||||||||||||||||||||||||
| 157 | |||||||||||||||||||||||||||||||||||||||||||
| 158 | ##-- ddc-json compat | ||||||||||||||||||||||||||||||||||||||||||
| 159 | 20 | __PACKAGE__->defalias('Field'=>'Arg0', 0,1); | |||||||||||||||||||||||||||||||||||||||||
| 160 | 0 | ▶ | sub jsonData { return (Field=>$_[0]{Arg0}, $_[0]->SUPER::jsonData); } | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
jsonData: not called CC=1 SCAR=6.9
| |||||||||||||||||||||||||||||||||||||||||||
| 161 | |||||||||||||||||||||||||||||||||||||||||||
| 162 | |||||||||||||||||||||||||||||||||||||||||||
| 163 | ##====================================================================== | ||||||||||||||||||||||||||||||||||||||||||
| 164 | ## CQFContextSort | ||||||||||||||||||||||||||||||||||||||||||
| 165 | package DDC::PP::CQFContextSort; | ||||||||||||||||||||||||||||||||||||||||||
| 166 | 20 | ▶ | use strict; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 167 | 20 | our @ISA = qw(DDC::PP::CQFSort); | |||||||||||||||||||||||||||||||||||||||||
| 168 | |||||||||||||||||||||||||||||||||||||||||||
| 169 | 0 | ▶ | sub defaultSort { return 'LessByMiddleContext'; } | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
defaultSort: not called CC=1 SCAR=6.9
| |||||||||||||||||||||||||||||||||||||||||||
| 170 | 2 | ▶ | sub new { | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
new: called CC=3 SCAR=12.0
| |||||||||||||||||||||||||||||||||||||||||||
| 171 | 2 | my ($that,$ftype,$field,$matchid,$offset,$lb,$ub,%opts) = @_; | |||||||||||||||||||||||||||||||||||||||||
| 172 | 2 | ▶ | return $that->SUPER::new($ftype,$field,$lb,$ub, MatchId=>($matchid||0), Offset=>($offset||0), %opts); | ||||||||||||||||||||||||||||||||||||||||
|
Condition50%2/4
$matchid || 0
$offset || 0
MC/DC0%0/1
$matchid || 0
$matchid
MC/DC0%0/1
$offset || 0
$offset
Truth table50%1/2
A
A= $matchid
Truth table50%1/2
A
A= $offset
| |||||||||||||||||||||||||||||||||||||||||||
| 173 | } | ||||||||||||||||||||||||||||||||||||||||||
| 174 | |||||||||||||||||||||||||||||||||||||||||||
| 175 | 2 | ▶ | sub toString { | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
toString: called CC=5 SCAR=19.9
| |||||||||||||||||||||||||||||||||||||||||||
| 176 | 2 | my $f = shift; | |||||||||||||||||||||||||||||||||||||||||
| 177 | return ('#'.uc($DDC::PP::HitSortEnumStrings[$f->{Type}]) | ||||||||||||||||||||||||||||||||||||||||||
| 178 | .'['.$f->argString($f->{Arg0}) | ||||||||||||||||||||||||||||||||||||||||||
| 179 | .($f->{MatchId} ? " =$f->{MatchId}" : '') | ||||||||||||||||||||||||||||||||||||||||||
| 180 | .sprintf(" %+d", ($f->{Offset}||0)) | ||||||||||||||||||||||||||||||||||||||||||
| 181 | .(defined($f->{Arg1}) || defined($f->{Arg2}) | ||||||||||||||||||||||||||||||||||||||||||
| 182 | 2 | ▶ | ? join(',', '', $f->argString($f->{Arg1}), $f->argString($f->{Arg2})) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 2 branches
Condition40%2/5
$f->{'Offset'} || 0
defined $f->{"Arg1"} or defined $f->{"Arg2"}
MC/DC0%0/1
$f->{'Offset'} || 0
$f->{'Offset'}
MC/DC0%0/2
defined $f->{"Arg1"} or defined $f->{"Arg2"}
defined $f->{"Arg1"}
defined $f->{"Arg2"}
Truth table50%1/2
A
A= $f->{'Offset'}
Truth table33%1/3
A or B
A= defined $f->{"Arg1"}B= defined $f->{"Arg2"}
| |||||||||||||||||||||||||||||||||||||||||||
| 183 | : '') | ||||||||||||||||||||||||||||||||||||||||||
| 184 | .']'); | ||||||||||||||||||||||||||||||||||||||||||
| 185 | } | ||||||||||||||||||||||||||||||||||||||||||
| 186 | |||||||||||||||||||||||||||||||||||||||||||
| 187 | 0 | ▶ | sub jsonData { return (Field=>$_[0]{Arg0}, MatchId=>$_[0]{MatchId}, Offset=>$_[0]{Offset}, $_[0]->SUPER::jsonData); } | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
jsonData: not called CC=1 SCAR=6.9
| |||||||||||||||||||||||||||||||||||||||||||
| 188 | 20 | __PACKAGE__->defalias('Field'=>'Arg0', 0,1); | |||||||||||||||||||||||||||||||||||||||||
| 189 | |||||||||||||||||||||||||||||||||||||||||||
| 190 | ##====================================================================== | ||||||||||||||||||||||||||||||||||||||||||
| 191 | ## CQFHasField | ||||||||||||||||||||||||||||||||||||||||||
| 192 | package DDC::PP::CQFHasField; | ||||||||||||||||||||||||||||||||||||||||||
| 193 | 20 | ▶ | use strict; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 194 | 20 | our @ISA = qw(DDC::PP::CQFSort); | |||||||||||||||||||||||||||||||||||||||||
| 195 | |||||||||||||||||||||||||||||||||||||||||||
| 196 | 20 | __PACKAGE__->defprop('Negated'); | |||||||||||||||||||||||||||||||||||||||||
| 197 | 8 | ▶ | sub defaultSort { return 'NoSort'; } | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
defaultSort: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 198 | 8 | ▶ | sub new { | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
new: called CC=2 SCAR=6.9
| |||||||||||||||||||||||||||||||||||||||||||
| 199 | 8 | my ($that,$field,$val,$negated,%opts) = @_; | |||||||||||||||||||||||||||||||||||||||||
| 200 | 8 | ▶ | return $that->SUPER::new(undef,$field,$val,'',Negated=>($negated||0),%opts); | ||||||||||||||||||||||||||||||||||||||||
|
Condition100%2/2
$negated || 0
MC/DC100%1/1
$negated || 0
$negated
Truth table100%2/2
A
A= $negated
| |||||||||||||||||||||||||||||||||||||||||||
| 201 | } | ||||||||||||||||||||||||||||||||||||||||||
| 202 | |||||||||||||||||||||||||||||||||||||||||||
| 203 | 0 | ▶ | sub Negate { $_[0]{Negated} = $_[0]{Negated} ? 0 : 1; } | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
Negate: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 204 | |||||||||||||||||||||||||||||||||||||||||||
| 205 | 8 | ▶ | sub toString { | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
toString: called CC=2 SCAR=6.9
| |||||||||||||||||||||||||||||||||||||||||||
| 206 | 8 | my $f = shift; | |||||||||||||||||||||||||||||||||||||||||
| 207 | return (($f->{Negated} ? '!' : '') | ||||||||||||||||||||||||||||||||||||||||||
| 208 | 8 | ▶ | ."#HAS[".$f->argStringE($f->{Arg0}).','.$f->valueString.']' | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 209 | ); | ||||||||||||||||||||||||||||||||||||||||||
| 210 | } | ||||||||||||||||||||||||||||||||||||||||||
| 211 | 4 | ▶ | sub valueString { return $_[0]->argStringE($_[0]{Arg1}); } | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
valueString: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 212 | |||||||||||||||||||||||||||||||||||||||||||
| 213 | 0 | ▶ | sub jsonMinMax { return (Field=>$_[0]{Arg0}, Value=>$_[0]->jsonFieldValue, Negated=>($_[0]{Negated} ? 1 : 0)); } | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
jsonMinMax: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 214 | 0 | ▶ | sub jsonFieldValue { return $_[0]{Arg1}; } | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
jsonFieldValue: not called CC=1 SCAR=6.9
| |||||||||||||||||||||||||||||||||||||||||||
| 215 | 20 | __PACKAGE__->defalias('Field'=>'Arg0', 0,1); | |||||||||||||||||||||||||||||||||||||||||
| 216 | 20 | __PACKAGE__->defalias('Value'=>'Arg1', 0,1); | |||||||||||||||||||||||||||||||||||||||||
| 217 | |||||||||||||||||||||||||||||||||||||||||||
| 218 | ##====================================================================== | ||||||||||||||||||||||||||||||||||||||||||
| 219 | ## CQFHasFieldValue | ||||||||||||||||||||||||||||||||||||||||||
| 220 | package DDC::PP::CQFHasFieldValue; | ||||||||||||||||||||||||||||||||||||||||||
| 221 | 20 | ▶ | use strict; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 222 | 20 | our @ISA = qw(DDC::PP::CQFHasField); | |||||||||||||||||||||||||||||||||||||||||
| 223 | |||||||||||||||||||||||||||||||||||||||||||
| 224 | ##====================================================================== | ||||||||||||||||||||||||||||||||||||||||||
| 225 | ## CQFHasFieldRegex | ||||||||||||||||||||||||||||||||||||||||||
| 226 | package DDC::PP::CQFHasFieldRegex; | ||||||||||||||||||||||||||||||||||||||||||
| 227 | 20 | ▶ | use strict; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 228 | 20 | our @ISA = qw(DDC::PP::CQFHasField); | |||||||||||||||||||||||||||||||||||||||||
| 229 | |||||||||||||||||||||||||||||||||||||||||||
| 230 | 20 | __PACKAGE__->defprop('Regex'); | |||||||||||||||||||||||||||||||||||||||||
| 231 | 2 | ▶ | sub new { | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
new: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 232 | 2 | my ($that,$field,$val,$negated,%opts) = @_; | |||||||||||||||||||||||||||||||||||||||||
| 233 | 2 | return $that->SUPER::new($field,$val,$negated,Regex=>$val,%opts); | |||||||||||||||||||||||||||||||||||||||||
| 234 | } | ||||||||||||||||||||||||||||||||||||||||||
| 235 | |||||||||||||||||||||||||||||||||||||||||||
| 236 | 2 | ▶ | sub valueString { return "/$_[0]{Regex}/"; } | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
valueString: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 237 | |||||||||||||||||||||||||||||||||||||||||||
| 238 | ##====================================================================== | ||||||||||||||||||||||||||||||||||||||||||
| 239 | ## CQFHasFieldPrefix | ||||||||||||||||||||||||||||||||||||||||||
| 240 | package DDC::PP::CQFHasFieldPrefix; | ||||||||||||||||||||||||||||||||||||||||||
| 241 | 20 | ▶ | use strict; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 242 | 20 | our @ISA = qw(DDC::PP::CQFHasFieldRegex); | |||||||||||||||||||||||||||||||||||||||||
| 243 | |||||||||||||||||||||||||||||||||||||||||||
| 244 | 0 | ▶ | sub new { | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
new: not called CC=1 SCAR=6.9
| |||||||||||||||||||||||||||||||||||||||||||
| 245 | 0 | my ($that,$field,$val,$negated,%opts) = @_; | |||||||||||||||||||||||||||||||||||||||||
| 246 | 0 | return $that->SUPER::new($field,$val,$negated,Regex=>"^\\Q${val}\\E",%opts); | |||||||||||||||||||||||||||||||||||||||||
| 247 | } | ||||||||||||||||||||||||||||||||||||||||||
| 248 | |||||||||||||||||||||||||||||||||||||||||||
| 249 | 0 | ▶ | sub valueString { return $_[0]->argStringE($_[0]{Arg1}).'*'; } | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
valueString: not called CC=1 SCAR=6.9
| |||||||||||||||||||||||||||||||||||||||||||
| 250 | |||||||||||||||||||||||||||||||||||||||||||
| 251 | ##====================================================================== | ||||||||||||||||||||||||||||||||||||||||||
| 252 | ## CQFHasFieldSuffix | ||||||||||||||||||||||||||||||||||||||||||
| 253 | package DDC::PP::CQFHasFieldSuffix; | ||||||||||||||||||||||||||||||||||||||||||
| 254 | 20 | ▶ | use strict; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 255 | 20 | our @ISA = qw(DDC::PP::CQFHasFieldRegex); | |||||||||||||||||||||||||||||||||||||||||
| 256 | |||||||||||||||||||||||||||||||||||||||||||
| 257 | 0 | ▶ | sub new { | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
new: not called CC=1 SCAR=6.9
| |||||||||||||||||||||||||||||||||||||||||||
| 258 | 0 | my ($that,$field,$val,$negated,%opts) = @_; | |||||||||||||||||||||||||||||||||||||||||
| 259 | 0 | return $that->SUPER::new($field,$val,$negated,Regex=>"\\Q${val}\\E\$",%opts); | |||||||||||||||||||||||||||||||||||||||||
| 260 | } | ||||||||||||||||||||||||||||||||||||||||||
| 261 | |||||||||||||||||||||||||||||||||||||||||||
| 262 | 0 | ▶ | sub valueString { return '*'.$_[0]->argStringE($_[0]{Arg1}); } | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
valueString: not called CC=1 SCAR=6.9
| |||||||||||||||||||||||||||||||||||||||||||
| 263 | |||||||||||||||||||||||||||||||||||||||||||
| 264 | ##====================================================================== | ||||||||||||||||||||||||||||||||||||||||||
| 265 | ## CQFHasFieldInfix | ||||||||||||||||||||||||||||||||||||||||||
| 266 | package DDC::PP::CQFHasFieldInfix; | ||||||||||||||||||||||||||||||||||||||||||
| 267 | 20 | ▶ | use strict; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 268 | 20 | our @ISA = qw(DDC::PP::CQFHasFieldRegex); | |||||||||||||||||||||||||||||||||||||||||
| 269 | |||||||||||||||||||||||||||||||||||||||||||
| 270 | 0 | ▶ | sub new { | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
new: not called CC=1 SCAR=6.9
| |||||||||||||||||||||||||||||||||||||||||||
| 271 | 0 | my ($that,$field,$val,$negated,%opts) = @_; | |||||||||||||||||||||||||||||||||||||||||
| 272 | 0 | return $that->SUPER::new($field,$val,$negated,Regex=>"\\Q${val}\\E",%opts); | |||||||||||||||||||||||||||||||||||||||||
| 273 | } | ||||||||||||||||||||||||||||||||||||||||||
| 274 | |||||||||||||||||||||||||||||||||||||||||||
| 275 | 0 | ▶ | sub valueString { return '*'.$_[0]->argStringE($_[0]{Arg1}).'*'; } | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
valueString: not called CC=1 SCAR=6.9
| |||||||||||||||||||||||||||||||||||||||||||
| 276 | |||||||||||||||||||||||||||||||||||||||||||
| 277 | ##====================================================================== | ||||||||||||||||||||||||||||||||||||||||||
| 278 | ## CQFHasFieldSet | ||||||||||||||||||||||||||||||||||||||||||
| 279 | package DDC::PP::CQFHasFieldSet; | ||||||||||||||||||||||||||||||||||||||||||
| 280 | 20 | ▶ | use strict; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 281 | 20 | our @ISA = qw(DDC::PP::CQFHasField); | |||||||||||||||||||||||||||||||||||||||||
| 282 | |||||||||||||||||||||||||||||||||||||||||||
| 283 | 20 | __PACKAGE__->defprop('Values'); | |||||||||||||||||||||||||||||||||||||||||
| 284 | 2 | ▶ | sub new { | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
new: called CC=2 SCAR=7.2
| |||||||||||||||||||||||||||||||||||||||||||
| 285 | 2 | my ($that,$field,$vals,$negated,%opts) = @_; | |||||||||||||||||||||||||||||||||||||||||
| 286 | 2 | ▶ | return $that->SUPER::new($field,"{}",$negated,Values=>($vals||[]),%opts); | ||||||||||||||||||||||||||||||||||||||||
|
Condition50%1/2
$vals || []
MC/DC0%0/1
$vals || []
$vals
Truth table50%1/2
A
A= $vals
| |||||||||||||||||||||||||||||||||||||||||||
| 287 | } | ||||||||||||||||||||||||||||||||||||||||||
| 288 | |||||||||||||||||||||||||||||||||||||||||||
| 289 | 2 | ▶ | sub SetValueString { | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
SetValueString: called CC=3 SCAR=12.0
| |||||||||||||||||||||||||||||||||||||||||||
| 290 | 2 | my ($f,$vals) = @_; | |||||||||||||||||||||||||||||||||||||||||
| 291 | 2 | ▶ | $vals ||= ($f->{Values}||[]); | ||||||||||||||||||||||||||||||||||||||||
|
Condition40%2/5
$vals ||= $f->{"Values"} || []
$f->{'Values'} || []
MC/DC0%0/2
$vals ||= $f->{"Values"} || []
$vals
$f->{'Values'}
Truth table33%1/3
A ||= B
A= $valsB= $f->{'Values'}
| |||||||||||||||||||||||||||||||||||||||||||
| 292 | 2 | return join(',', map {$f->argStringE($_)} @$vals); | |||||||||||||||||||||||||||||||||||||||||
| 293 | } | ||||||||||||||||||||||||||||||||||||||||||
| 294 | 2 | ▶ | sub valueString { return '{' . $_[0]->SetValueString . '}'; } | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
valueString: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 295 | |||||||||||||||||||||||||||||||||||||||||||
| 296 | 0 | ▶ | sub jsonFieldValue { return $_[0]{Values}; } | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
jsonFieldValue: not called CC=1 SCAR=6.9
| |||||||||||||||||||||||||||||||||||||||||||
| 297 | |||||||||||||||||||||||||||||||||||||||||||
| 298 | |||||||||||||||||||||||||||||||||||||||||||
| 299 | ##====================================================================== | ||||||||||||||||||||||||||||||||||||||||||
| 300 | ## CQFPrune | ||||||||||||||||||||||||||||||||||||||||||
| 301 | |||||||||||||||||||||||||||||||||||||||||||
| 302 | package DDC::PP::CQFPrune; | ||||||||||||||||||||||||||||||||||||||||||
| 303 | 20 | ▶ | use strict; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 304 | 20 | our @ISA = qw(DDC::PP::CQFSort); | |||||||||||||||||||||||||||||||||||||||||
| 305 | |||||||||||||||||||||||||||||||||||||||||||
| 306 | 20 | __PACKAGE__->defprop('Limit'); | |||||||||||||||||||||||||||||||||||||||||
| 307 | 20 | __PACKAGE__->defprop('Keys'); | |||||||||||||||||||||||||||||||||||||||||
| 308 | 6 | ▶ | sub new { | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
new: called CC=3 SCAR=11.1
| |||||||||||||||||||||||||||||||||||||||||||
| 309 | 6 | my ($that,$sort,$limit,$keys,%opts) = @_; | |||||||||||||||||||||||||||||||||||||||||
| 310 | 6 | ▶ | return $that->SUPER::new($sort,undef,undef,undef,Limit=>($limit//0), Keys=>($keys//[]), %opts); | ||||||||||||||||||||||||||||||||||||||||
|
Condition75%3/4
$limit // 0
$keys // []
MC/DC0%0/1
$limit // 0
$limit
MC/DC100%1/1
$keys // []
$keys
Truth table50%1/2
A
A= $limit
Truth table100%2/2
A
A= $keys
| |||||||||||||||||||||||||||||||||||||||||||
| 311 | } | ||||||||||||||||||||||||||||||||||||||||||
| 312 | |||||||||||||||||||||||||||||||||||||||||||
| 313 | 0 | ▶ | sub defaultSort { return 'LessByPruneKey'; } | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
defaultSort: not called CC=1 SCAR=6.9
| |||||||||||||||||||||||||||||||||||||||||||
| 314 | |||||||||||||||||||||||||||||||||||||||||||
| 315 | 2 | ▶ | sub toString { | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
toString: called CC=3 SCAR=12.0
| |||||||||||||||||||||||||||||||||||||||||||
| 316 | 2 | my $f = shift; | |||||||||||||||||||||||||||||||||||||||||
| 317 | my $s = ('#'.uc($DDC::PP::HitSortEnumStrings[$f->{Type}]) | ||||||||||||||||||||||||||||||||||||||||||
| 318 | .'['.join(',', | ||||||||||||||||||||||||||||||||||||||||||
| 319 | ($f->{Limit}//0), | ||||||||||||||||||||||||||||||||||||||||||
| 320 | 2 | ▶ | (UNIVERSAL::can($f->{Keys},'toString') ? $f->{Keys}->toString() : qw()), | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition50%1/2
$f->{"Limit"} // 0
MC/DC0%0/1
$f->{"Limit"} // 0
$f->{"Limit"}
Truth table50%1/2
A
A= $f->{"Limit"}
| |||||||||||||||||||||||||||||||||||||||||||
| 321 | ) | ||||||||||||||||||||||||||||||||||||||||||
| 322 | .']'); | ||||||||||||||||||||||||||||||||||||||||||
| 323 | } | ||||||||||||||||||||||||||||||||||||||||||
| 324 | |||||||||||||||||||||||||||||||||||||||||||
| 325 | 4 | ▶ | sub jsonData { | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
jsonData: called CC=2 SCAR=7.6
| |||||||||||||||||||||||||||||||||||||||||||
| 326 | 4 | ▶ | return ('Limit'=>($_[0]{Limit}//0), Keys=>$_[0]{Keys}); | ||||||||||||||||||||||||||||||||||||||||
|
Condition50%1/2
$_[0]{"Limit"} // 0
MC/DC0%0/1
$_[0]{"Limit"} // 0
$_[0]{"Limit"}
Truth table50%1/2
A
A= $_[0]{"Limit"}
| |||||||||||||||||||||||||||||||||||||||||||
| 327 | } | ||||||||||||||||||||||||||||||||||||||||||
| 328 | |||||||||||||||||||||||||||||||||||||||||||
| 329 | |||||||||||||||||||||||||||||||||||||||||||
| 330 | 20 | 1; ##-- be happy | |||||||||||||||||||||||||||||||||||||||||
| 331 | |||||||||||||||||||||||||||||||||||||||||||
| 332 | =pod | ||||||||||||||||||||||||||||||||||||||||||
| 333 | |||||||||||||||||||||||||||||||||||||||||||
| 334 | =head1 NAME | ||||||||||||||||||||||||||||||||||||||||||
| 335 | |||||||||||||||||||||||||||||||||||||||||||
| 336 | DDC::PP::CQFilter - pure-perl implementation of DDC::XS::CQFilter | ||||||||||||||||||||||||||||||||||||||||||
| 337 | |||||||||||||||||||||||||||||||||||||||||||
| 338 | =head1 SYNOPSIS | ||||||||||||||||||||||||||||||||||||||||||
| 339 | |||||||||||||||||||||||||||||||||||||||||||
| 340 | use DDC::PP::CQFilter; | ||||||||||||||||||||||||||||||||||||||||||
| 341 | #... stuff happens ... | ||||||||||||||||||||||||||||||||||||||||||
| 342 | |||||||||||||||||||||||||||||||||||||||||||
| 343 | |||||||||||||||||||||||||||||||||||||||||||
| 344 | =head1 DESCRIPTION | ||||||||||||||||||||||||||||||||||||||||||
| 345 | |||||||||||||||||||||||||||||||||||||||||||
| 346 | The DDC::PP::CQFilter class is a pure-perl fork of the L<DDC::XS::CQFilter|DDC::XS::CQFilter> class, | ||||||||||||||||||||||||||||||||||||||||||
| 347 | which see for details. | ||||||||||||||||||||||||||||||||||||||||||
| 348 | |||||||||||||||||||||||||||||||||||||||||||
| 349 | =head1 SEE ALSO | ||||||||||||||||||||||||||||||||||||||||||
| 350 | |||||||||||||||||||||||||||||||||||||||||||
| 351 | perl(1), | ||||||||||||||||||||||||||||||||||||||||||
| 352 | DDC::PP(3perl), | ||||||||||||||||||||||||||||||||||||||||||
| 353 | DDC::XS::CQFilter(3perl). | ||||||||||||||||||||||||||||||||||||||||||
| 354 | |||||||||||||||||||||||||||||||||||||||||||
| 355 | =head1 AUTHOR | ||||||||||||||||||||||||||||||||||||||||||
| 356 | |||||||||||||||||||||||||||||||||||||||||||
| 357 | Bryan Jurish E<lt>moocow@cpan.orgE<gt> | ||||||||||||||||||||||||||||||||||||||||||
| 358 | |||||||||||||||||||||||||||||||||||||||||||
| 359 | =head1 COPYRIGHT AND LICENSE | ||||||||||||||||||||||||||||||||||||||||||
| 360 | |||||||||||||||||||||||||||||||||||||||||||
| 361 | Copyright (C) 2016-2020 by Bryan Jurish | ||||||||||||||||||||||||||||||||||||||||||
| 362 | |||||||||||||||||||||||||||||||||||||||||||
| 363 | This library is free software; you can redistribute it and/or modify | ||||||||||||||||||||||||||||||||||||||||||
| 364 | it under the same terms as Perl itself, either Perl version 5.14.2 or, | ||||||||||||||||||||||||||||||||||||||||||
| 365 | at your option, any later version of Perl 5 you may have available. | ||||||||||||||||||||||||||||||||||||||||||
| 366 | |||||||||||||||||||||||||||||||||||||||||||
| 367 | =cut | ||||||||||||||||||||||||||||||||||||||||||
| 368 | |||||||||||||||||||||||||||||||||||||||||||