]> git.ipfire.org Git - thirdparty/systemd.git/commit
basic/extract-word: add EXTRACT_UNESCAPE_SEPARATORS mode
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 3 Aug 2020 17:06:16 +0000 (19:06 +0200)
committerLuca Boccassi <luca.boccassi@microsoft.com>
Wed, 5 Aug 2020 20:29:13 +0000 (21:29 +0100)
commit1e198efcdb1423847642e141c8b296e544707a18
tree56c96917abb63c9e03de4603eaf37f15ade08b0b
parent866fdcceb484e4b3bffcbf5ab0ea490f06d98e9c
basic/extract-word: add EXTRACT_UNESCAPE_SEPARATORS mode

This allows separators to be escaped, for example to allow
"a\:b:c", to be treated as "a:b", "c" with ":" as the separator.
src/basic/extract-word.c
src/basic/extract-word.h
src/test/test-extract-word.c