X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Fmatchstr.c;h=101e777b75b81327469a778684799878ef760e7b;hp=15296cc47c7d73d1a63c0768158623d4c8748475;hb=1346b30779b120691e4145a3578716f77300951e;hpb=43a9d38d20c1b1bcd1a03b2445a501d27526bd35 diff --git a/src/matchstr.c b/src/matchstr.c index 15296cc..101e777 100644 --- a/src/matchstr.c +++ b/src/matchstr.c @@ -1,5 +1,5 @@ /* This file is part of the YAZ toolkit. - * Copyright (C) 1995-2011 Index Data + * Copyright (C) 1995-2013 Index Data * See the file LICENSE for details. */ @@ -14,8 +14,8 @@ #include #include -#include #include +#include #include int yaz_matchstr(const char *s1, const char *s2) @@ -35,10 +35,10 @@ int yaz_matchstr(const char *s1, const char *s2) break; if (c2 != '.') { - if (isupper(c1)) - c1 = tolower(c1); - if (isupper(c2)) - c2 = tolower(c2); + if (yaz_isupper(c1)) + c1 = yaz_tolower(c1); + if (yaz_isupper(c2)) + c2 = yaz_tolower(c2); if (c1 != c2) break; }