Free download Boyer 1.5
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 or over and the
pattern you are searching for is 4 characters or longer.
String.indexOf is particularly slow when the pattern begins
with a common letter such as "e". Boyer-Moore is fastest
when the pattern is long and composed only of uncommon
letters, e.g. "z" or "^". If you use a char[] instead of
String for your text to be searched, it will run an
additional 33% faster.
Boyer automatically reverts to String.indexOf when that
would be faster.
Boyer 1.5 web development, java & javascript software developed by Canadian Mind Products. The license of this web development, java & javascript software is freeware, the price is 0.00, you can free download and get a free trial before you buy a license or registration. All Boyer 1.5 download links are direct Boyer full download from Canadian Mind Products site or their selected mirrors.
Keywords: Boyer-Moore, string search, search, indexOf, Java, fast string search, string handling, Freeware, Web Development, Java & JavaScript, Canadian Mind Products, Boyer
Recent Changes: add icon and pad file
Install Support: No Install Support
Supported Languages: English
Additional Requirements: Java 1.1+
|