>Would someone do me a favor. I'm curious about Wave's code. I've created >search code, trying out different algorithms, including my take on >boyer-moore. Unfortunately, I just dont remember which version of code >Heather or Jay refer to when they mention Wave's code. Unless there is >another Wave, I've developed a mental block. > Waverly, I'm the culprit here. When I was challenging your assertion (as I understood it) that a FN that checked for current case ("preprocessed") before making a change would be faster than a straight lookup, I created such an animal and dubbed it in your honor. The name stuck, even though your part in it was nothing but inspiration. The routine now known as "Wave's" is: local fn lowerCaseW(textH as handle) dim txtPtr as ptr dim textEnd as long textEnd = [textH]+fn gethandlesize(textH)-1 for txtPtr = [textH] to textEnd if glookupW$[txtPtr.0``] then txtPtr.0` = glookupW$[txtPtr.0``] next end fn No disrespect intended. :-) 0"0 =J= a y "