-
-notmuch_bool_t
-_notmuch_terms_has_more (notmuch_terms_t *terms)
-{
- std::string s;
-
- if (terms->iterator == terms->iterator_end)
- return FALSE;
-
- s = *terms->iterator;
- if (! s.empty () && s[0] == terms->prefix_char)
- return TRUE;
- else
- return FALSE;
-}
-
-const char *
-_notmuch_terms_get (notmuch_terms_t *terms)
-{
- return talloc_strdup (terms, (*terms->iterator).c_str () + 1);
-}
-
-void
-_notmuch_terms_advance (notmuch_terms_t *terms)
-{
- terms->iterator++;
-}
-
-void
-_notmuch_terms_destroy (notmuch_terms_t *terms)
-{
- talloc_free (terms);
-}
-
-notmuch_bool_t
-notmuch_tags_has_more (notmuch_tags_t *tags)
-{
- return _notmuch_terms_has_more (&tags->terms);
-}
-
-const char *
-notmuch_tags_get (notmuch_tags_t *tags)
-{
- return _notmuch_terms_get (&tags->terms);
-}
-
-void
-notmuch_tags_advance (notmuch_tags_t *tags)
-{
- return _notmuch_terms_advance (&tags->terms);
-}
-
-void
-notmuch_tags_destroy (notmuch_tags_t *tags)
-{
- return _notmuch_terms_destroy (&tags->terms);
-}