X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Fmatchstr.c;h=31fae98e01d39af3cc6de2a91e47cba2469917c7;hp=f3ff10aa4ab1640f7f3abf70427598dd201f2954;hb=3e11596504862f376b7340848715d6f549864660;hpb=2788a4851b551e1a3efb320a2878b809f2d8a9d7 diff --git a/src/matchstr.c b/src/matchstr.c index f3ff10a..31fae98 100644 --- a/src/matchstr.c +++ b/src/matchstr.c @@ -1,5 +1,5 @@ /* This file is part of the YAZ toolkit. - * Copyright (C) 1995-2009 Index Data + * Copyright (C) 1995-2012 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; } @@ -74,6 +74,7 @@ int yaz_memcmp(const void *a, const void *b, size_t len_a, size_t len_b) /* * Local variables: * c-basic-offset: 4 + * c-file-style: "Stroustrup" * indent-tabs-mode: nil * End: * vim: shiftwidth=4 tabstop=8 expandtab