Fast string search (indexOf) using the Boyer-Moore
algorithm. Incorporate this class into your own Java
programs to rapidly search strings.
use:
import com.mindprod.Boyer.Boyer;
...
Boyer b = new Boyer("dogcatwombat");
int where = b.indexOf("cat");
or
int where = Boyer.indexOf("dogcatwombat","cat");
Boyer-Moore is about twice as fast as String.indexOf when
the string you are searching in is 2K o
Keywords: Boyer-Moore, string search, search, indexOf, Java, fast string search, string handling
Recent Changes: add icon and pad file
Install Support: No Install Support
Supported Languages: English
Additional Requirements: Java 1.6+
if($showpadurl == true) {?>
PAD file URL: http://mindprod.com/pad/boyer.xml
} ?>
|