Hi Kinkie, Alex,

I have managed to get the SBuf::rfind() functions fully in-sync with std::string versions
http://master.squid-cache.org/~amosjeffries/patches/SBuf_fixes_mk2.patch

There is a rather strange problem with using memrchr(). If you pass it the accurate count of bytes to check it fails to match start/end of hay properly in sub-string cases. I have had to use endPos+1 and artificially manipulate the situations where endPos == length().

Now to re-enable the find() tests and fix those...

Amos

Reply via email to