| 1 | package Text::Prefix::XS; | ||||||||||
| 2 | 2 | ▶ | use XSLoader; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | 2 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 2 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | |||||||||||
| 6 | our $VERSION = '0.02-TRIAL'; | ||||||||||
| 7 | |||||||||||
| 8 | XSLoader::load __PACKAGE__, $VERSION; | ||||||||||
| 9 | 2 | ▶ | use base qw(Exporter); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 10 | our @EXPORT = qw( | ||||||||||
| 11 | prefix_search_build | ||||||||||
| 12 | prefix_search_create | ||||||||||
| 13 | prefix_search); | ||||||||||
| 14 | 1; | ||||||||||
| 15 | |||||||||||
| 16 | sub prefix_search_create(@) | ||||||||||
| 17 | { | ||||||||||
| 18 | 0 | ▶ | my @copy = @_; | ||||||||
|
Subroutine
prefix_search_create: not called CC=2 SCAR=17.9
| |||||||||||
| 19 | 0 | ▶ | @copy = sort { length $b <=> length $a || $a cmp $b } @copy; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 20 | 0 | return prefix_search_build(\@copy); | |||||||||
| 21 | } | ||||||||||
| 22 | |||||||||||
| 23 | __END__ | ||||||||||