This function is a huge reason why JLookUp's searches are good.
This is right out of the .h file itself, so here's some credit where it's due:
/* ***************************************************************************
*
* Copyright 1992-2004 by Pete Wilson All Rights Reserved
* 50 Staples Street : Lowell Massachusetts 01851 : USA
* http://www.pwilson.net/ pete@pwilson.net +1 978-454-4547
*
* This item is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License as published by the
* Free Software Foundation; either version 2.1 of the License, or (at your
* option) any later version.
*
* Pete Wilson prepared this item in the hope that it might be useful, but it
* has NO WARRANTY WHATEVER, nor even any implied warranty of MERCHANTABILITY
* or FITNESS FOR A PARTICULAR PURPOSE.
*
*************************************************************************** */