]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: tools: add new functions to quote-encode strings
authorWilly Tarreau <w@1wt.eu>
Mon, 16 Jun 2014 13:16:40 +0000 (15:16 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 16 Jun 2014 16:20:14 +0000 (18:20 +0200)
commit588297f2f958cfb09226cfcc3c576308cf062a1d
treeafca6a0f686997d272dc6b97668600d90b87ae7a
parent148f40866bd8b8804549a00c48f0a3d235a66829
MINOR: tools: add new functions to quote-encode strings

qstr() and cstr() will be used to quote-encode strings. The first one
does it unconditionally. The second one is aimed at CSV files where the
quote-encoding is only needed when the field contains a quote or a comma.
include/common/standard.h
src/standard.c