notmuch/util/unicode-util.h
David Bremner 48ad0e1ff3 util/unicode: allow calling from C++
The omission of the 'extern "C"' machinery seems like an oversight.
2021-09-04 17:07:19 -07:00

19 lines
329 B
C

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