commit | 8f3ce06f14e13719c9353794d60001eab8d43717 | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Fri Nov 22 15:58:53 2019 +0100 |
committer | Willy Tarreau <w@1wt.eu> | Mon Nov 25 10:33:35 2019 +0100 |
tree | 14c9d2611ee87193616d1460fd86975d59e1f979 | |
parent | 2e945c8ee7d5cb358d98c4333a66b0d6631cefa6 [diff] |
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).