diff options
| author | David Bremner <david@tethera.net> | 2021-08-24 08:17:28 -0700 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2021-09-04 17:07:19 -0700 |
| commit | 5cb452c325e1f69e43dca610f48b9396cba9c039 (patch) | |
| tree | f2c1ec908ab3eaca74cfd10df84fd692616764d9 /lib/database-private.h | |
| parent | 0b98ad5e4ef6b0345f28143243de1170c5c3df54 (diff) | |
lib: factor out query construction from regexp
This will allow re-use of this code outside of the Xapian query parser.
Diffstat (limited to 'lib/database-private.h')
| -rw-r--r-- | lib/database-private.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/database-private.h b/lib/database-private.h index 85d55299..cf4eb94b 100644 --- a/lib/database-private.h +++ b/lib/database-private.h @@ -306,6 +306,11 @@ _notmuch_database_setup_user_query_fields (notmuch_database_t *notmuch); notmuch_status_t _notmuch_sexp_string_to_xapian_query (notmuch_database_t *notmuch, const char *querystr, Xapian::Query &output); + +notmuch_status_t +_notmuch_regexp_to_query (notmuch_database_t *notmuch, Xapian::valueno slot, std::string field, + std::string regexp_str, + Xapian::Query &output, std::string &msg); #endif #endif |
