DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=34464>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ· INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=34464 ------- Additional Comments From [EMAIL PROTECTED] 2006-05-22 19:27 ------- Created an attachment (id=18328) --> (http://issues.apache.org/bugzilla/attachment.cgi?id=18328&action=view) Patched to keep track of the possible match window. While something like the Raita or Boyer-Moore algorithm might be a better choice in the long run, this patch just keeps track of the newest substring that might be a match. Advantages: Doesn't do string matching if the buffer is smaller than the pattern. Only performs indexOf on a minimal substring. Disadvantages: Extra test and increment in the while loop's test. Extra variable initialization. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]