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
Received on Mon Mar 04 2013 - 05:45:57 MST
This archive was generated by hypermail 2.2.0 : Tue Mar 05 2013 - 12:00:05 MST