diff options
author | Richard Maw <richard.maw@codethink.co.uk> | 2015-06-23 17:00:40 +0000 |
---|---|---|
committer | Richard Maw <richard.maw@codethink.co.uk> | 2015-08-07 15:50:42 +0000 |
commit | 206644aedeb8859801051ac170ec562c6a113a79 (patch) | |
tree | 88ba118333423abc16871dc490a74cd911218b3d /src/basic/util.h | |
parent | 12ba2c44dde4d7cfc0e531dbc3cbd0581c323637 (diff) |
util: Allow non-separator coalescing parsing in extract_first_word
If EXTRACT_DONT_COALESCE_SEPARATORS is passed, then leading separators,
trailing separators and spans of multiple separators aren't skipped, and
empty arguments from before, after or between separators may be extracted.
Diffstat (limited to 'src/basic/util.h')
-rw-r--r-- | src/basic/util.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/basic/util.h b/src/basic/util.h index 82fb771e20..4d6a8abb57 100644 --- a/src/basic/util.h +++ b/src/basic/util.h @@ -859,6 +859,7 @@ typedef enum ExtractFlags { EXTRACT_CUNESCAPE = 2, EXTRACT_CUNESCAPE_RELAX = 4, EXTRACT_QUOTES = 8, + EXTRACT_DONT_COALESCE_SEPARATORS = 16, } ExtractFlags; int extract_first_word(const char **p, char **ret, const char *separators, ExtractFlags flags); |