diff options
author | martin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2009-06-24 13:27:35 +0000 |
---|---|---|
committer | martin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2009-06-24 13:27:35 +0000 |
commit | 38154a42acc58f35daf76d14cb62611f0d20bbc4 (patch) | |
tree | 08e9e25b4c46ffc624dcbe44190f79443512167b /navit/linguistics.c | |
parent | fdd59adee6f6c3c68f29c6806baf3f7870efdd67 (diff) | |
download | navit-38154a42acc58f35daf76d14cb62611f0d20bbc4.tar.gz |
Fix:map_binfile:Use special char conversion and word stems for searching
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@2364 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/linguistics.c')
-rw-r--r-- | navit/linguistics.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/navit/linguistics.c b/navit/linguistics.c index f8651f285..464296a0e 100644 --- a/navit/linguistics.c +++ b/navit/linguistics.c @@ -128,3 +128,17 @@ linguistics_expand_special(char *str, int mode) } return ret; } + +char * +linguistics_next_word(char *str) +{ + int len=strcspn(str, " -"); + if (!str[len] || !str[len+1]) + return NULL; + return str+len+1; +} + +void +linguistics_init(void) +{ +} |