]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: buffer: add a function to match against string patterns
authorWilly Tarreau <w@1wt.eu>
Fri, 22 Sep 2017 13:02:54 +0000 (15:02 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 19 Oct 2017 13:01:07 +0000 (15:01 +0200)
commit6634b63c7807dcda56e2abd86f6360f4043b9818
tree5af7d53b644da8c23a786e339b5ba533d104d55f
parent7f564d2b60e169f7dd0b1d233ec3c41849296026
MINOR: buffer: add a function to match against string patterns

In order to match known patterns in wrapping buffer, we'll introduce new
string manipulation functions for buffers. The new function b_isteq()
relies on an ist string for the pattern and compares it against any
location in the buffer relative to <p>. The second function bi_eat()
is specially designed to match input contents.
include/common/buffer.h