X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Fcclstr.c;h=a4e2bb073c85127920fa56b95dda55459015d706;hp=9b359e7c4f8f3f29db60a8afada0bc9a9a167556;hb=dd016baf50d8cd02a1a32d1fd10b5544cae6ff96;hpb=ee6ab2ee3a9ee1a8c65d7272ec7fba1d886f5af0 diff --git a/src/cclstr.c b/src/cclstr.c index 9b359e7..a4e2bb0 100644 --- a/src/cclstr.c +++ b/src/cclstr.c @@ -1,12 +1,15 @@ /* This file is part of the YAZ toolkit. - * Copyright (C) 1995-2008 Index Data + * Copyright (C) Index Data * See the file LICENSE for details. */ -/** +/** * \file cclstr.c * \brief Implements CCL string compare utilities */ -#include +#if HAVE_CONFIG_H +#include +#endif +#include #include #include @@ -14,7 +17,10 @@ static int ccli_toupper (int c) { - return toupper (c); + if (yaz_islower(c)) + return yaz_toupper(c); + else + return c; } int (*ccl_toupper)(int c) = NULL; @@ -57,6 +63,7 @@ int ccl_memicmp (const char *s1, const char *s2, size_t n) /* * Local variables: * c-basic-offset: 4 + * c-file-style: "Stroustrup" * indent-tabs-mode: nil * End: * vim: shiftwidth=4 tabstop=8 expandtab