]> git.notmuchmail.org Git - notmuch/blobdiff - util/unicode-util.h
util: add unicode_word_utf8
[notmuch] / util / unicode-util.h
diff --git a/util/unicode-util.h b/util/unicode-util.h
new file mode 100644 (file)
index 0000000..32d1e6e
--- /dev/null
@@ -0,0 +1,12 @@
+#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