I'm staring at do-find-string-all's implementation, and right before the string-matching logic, there's a mysterious comment "Knuth Bendix" in there. I'm staring at the code some more, and it looks more like KMP (Knuth-Morris-Pratt) to me.<div>
<br></div><div>(I have no idea what the Knuth-Bendix algorithm looks like, but I'm pretty sure it has little to do with string matching: it's supposed to be an algorithm for solving a system of equations...)<div>
<div>
<br></div><div>Assuming that it is KMP, is there a reason why we're not using Boyer-Moore here instead? My understanding was BM was faster than KMP for common situations.</div></div></div>