]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: ist: add ist_find_ctl()
authorWilly Tarreau <w@1wt.eu>
Fri, 22 Nov 2019 14:58:53 +0000 (15:58 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 25 Nov 2019 09:33:35 +0000 (10:33 +0100)
commit8f3ce06f14e13719c9353794d60001eab8d43717
tree14c9d2611ee87193616d1460fd86975d59e1f979
parent2e945c8ee7d5cb358d98c4333a66b0d6631cefa6
MINOR: ist: add ist_find_ctl()

This new function looks for the first control character in a string (a
char whose value is between 0x00 and 0x1F included) and returns it, or
NULL if there is none. It is optimized for quickly evicting non-matching
strings and scans ~0.43 bytes per cycle. It can be used as an accelerator
when it's needed to look up several of these characters (e.g. CR/LF/NUL).
include/common/ist.h