X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fcclstr.c;h=d3cbc6c0ea852b9502fe587b408293c27e619439;hb=00537b483d646bd04a204708ecbde708861f044e;hp=8f460546a6364181b1ff30a2263fbb48fb21bff2;hpb=2788a4851b551e1a3efb320a2878b809f2d8a9d7;p=yaz-moved-to-github.git diff --git a/src/cclstr.c b/src/cclstr.c index 8f46054..d3cbc6c 100644 --- a/src/cclstr.c +++ b/src/cclstr.c @@ -1,12 +1,15 @@ /* 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. */ -/** +/** * \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