notmuch/util
Austin Clements 25cf5f5dc4 util: Factor out boolean term quoting routine
This is now a generic boolean term quoting function.  It performs
minimal quoting to produce user-friendly queries.

This could live in tag-util as well, but it is really nothing specific
to tags (although the conventions are specific to Xapian).

The API is changed from "caller-allocates" to "readline-like".  The
scan for max tag length is pushed down into the quoting routine.
Furthermore, this now combines the term prefix with the quoted term;
arguably this is just as easy to do in the caller, but this will
nicely parallel the boolean term parsing function to be introduced
shortly.

This is an amalgamation of code written by David Bremner and myself.
2013-01-06 22:39:36 -04:00
..
error_util.c Annotate internal_error with the attribute noreturn 2012-09-27 12:52:06 -03:00
error_util.h Annotate internal_error with the attribute noreturn 2012-09-27 12:52:06 -03:00
hex-escape.c hex-escape: (en|de)code strings to/from restricted character set 2012-12-02 09:14:59 -04:00
hex-escape.h hex-escape: (en|de)code strings to/from restricted character set 2012-12-02 09:14:59 -04:00
Makefile xutil.c: remove duplicate copies, create new library libutil.a to contain xutil. 2011-10-30 23:09:49 -03:00
Makefile.local util: add talloc-extra.[ch] 2012-12-30 21:12:11 -04:00
string-util.c util: Factor out boolean term quoting routine 2013-01-06 22:39:36 -04:00
string-util.h util: Factor out boolean term quoting routine 2013-01-06 22:39:36 -04:00
talloc-extra.c util: add talloc-extra.[ch] 2012-12-30 21:12:11 -04:00
talloc-extra.h util: add talloc-extra.[ch] 2012-12-30 21:12:11 -04:00
xutil.c xregcomp: don't consider every regex compilation failure an internal error. 2011-10-30 23:10:38 -03:00
xutil.h remove GCC visibility pragmas 2011-10-31 09:05:07 -03:00