notmuch/util/unicode-util.h
David Bremner 781125c9e9 util: add unicode_word_utf8
This originally use Xapian::Unicode::is_wordchar, but that forces
clients to link directly to libxapian, which seems like it might be
busywork if nothing else.
2019-05-25 06:51:12 -03:00

12 lines
261 B
C

#ifndef UNICODE_UTIL_H
#define UNICODE_UTIL_H
#include <stdbool.h>
#include <gmodule.h>
/* The utf8 encoded string would tokenize as a single word, according
* to xapian. */
bool unicode_word_utf8 (const char *str);
typedef gunichar notmuch_unichar;
#endif