summaryrefslogtreecommitdiff
path: root/navit/linguistics.c
diff options
context:
space:
mode:
authorsleske <sleske@ffa7fe5e-494d-0410-b361-a75ebd5db220>2013-07-14 21:07:59 +0000
committersleske <sleske@ffa7fe5e-494d-0410-b361-a75ebd5db220>2013-07-14 21:07:59 +0000
commit3e1fce8354dc303aa3e351da46e61a6e2b96d0ba (patch)
treee622b3ca7af53c89de9fd2e66870d1ca390f374c /navit/linguistics.c
parent368ea8769f0294ffd583ce221e2fb4b195d93e7f (diff)
downloadnavit-svn-3e1fce8354dc303aa3e351da46e61a6e2b96d0ba.tar.gz
Fix:core:Add apostrophes (ASCII 39&96) as word separators for address search.|Fixes #507.
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@5548 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/linguistics.c')
-rw-r--r--navit/linguistics.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/navit/linguistics.c b/navit/linguistics.c
index e60497e2..2483a489 100644
--- a/navit/linguistics.c
+++ b/navit/linguistics.c
@@ -449,7 +449,7 @@ linguistics_expand_special(const char *str, int mode)
char *
linguistics_next_word(char *str)
{
- int len=strcspn(str, " -/()");
+ int len=strcspn(str, LINGUISTICS_WORD_SEPARATORS_ASCII);
if (!str[len] || !str[len+1])
return NULL;
return str+len+1;