wordsplit: implement separate single- and double-quote parsing.
* include/mailutils/wordsplit.h (MU_WRDSF_SQUOTE,MU_WRDSF_DQUOTE): New flags. (MU_WRDSF_QUOTE): Redefine as an OR of the above two. * libmailutils/string/wordsplit.c (scan_word): Treat '\'' and '"' separately, depending on the flags. * libmailutils/tests/wsp.c: Add squote and dquote options. * libmailutils/tests/wordsplit.at: Test separate quoting support.
Showing
4 changed files
with
57 additions
and
30 deletions
-
Please register or sign in to post a comment