summaryrefslogtreecommitdiff
path: root/navit/linguistics.h
blob: 414cf30fa534ffa526d14295b1a20183c5ee8510 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifdef __cplusplus
extern "C" {
#endif
#define LINGUISTICS_WORD_SEPARATORS_ASCII " -/()'`"
char *linguistics_expand_special(const char *str, int mode);
char *linguistics_next_word(char *str);
void linguistics_init(void);
void linguistics_free(void);
char *linguistics_casefold(const char *in);
int linguistics_search(const char *str);
enum linguistics_cmp_mode {
	linguistics_cmp_expand=1,
	linguistics_cmp_partial=2,
	linguistics_cmp_words=4
};
int linguistics_compare(const char *s1, const char *s2, enum linguistics_cmp_mode mode);
#ifdef __cplusplus
}
#endif