[PATCH] Update SBuf::trim

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Tue, 03 Jun 2014 22:46:19 +1200

This replaces the SBuf::trim() to use CharacterSet instead of an SBuf()
list of characters and memchr()

It seems to be faster for CharacterSet lookup than repeated memchr
calls, but Im not certain of that. It is certainly makes simpler parser
code with trim and a predefined CharacterSet than static SBuf set of chars.

Amos

Received on Tue Jun 03 2014 - 10:46:31 MDT

This archive was generated by hypermail 2.2.0 : Tue Jun 03 2014 - 12:00:17 MDT