]> git.kaiwu.me - haproxy.git/commit
MINOR: tools: add support for ist to the word fingerprinting functions
authorWilly Tarreau <w@1wt.eu>
Tue, 24 Jun 2025 15:14:47 +0000 (17:14 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 24 Jun 2025 16:28:22 +0000 (18:28 +0200)
commit4adc1ef7ad80f92f5eabdb5a8b39a9a2fdd65301
tree3f53b6a8a6a1017006dd7c9ea13ef8deb8080ff4
parentd37be30c8840521a31ebfb8cec6ef37e74cb0e03
MINOR: tools: add support for ist to the word fingerprinting functions

The word fingerprinting functions are used to compare similar words to
suggest a correctly spelled one that looks like what the user proposed.
Currently the functions only support const char*, but there's no reason
for this, and it would be convenient to support substrings extracted
from random pieces of configurations. Here we're adding new variants
"_with_len" that take these ISTs and which are in fact a slight change
of the original ones that the old ones now rely on.
include/haproxy/tools.h
src/tools.c