X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Fcclstr.c;h=b457b6c1401dc735ec4d00c194530641912dc804;hp=a5b73d8bc6ee9096c5d42e5f34494ab734610c44;hb=5f5ce1a79c4061098904a01ff9c9e723e9d6e7b9;hpb=65371f5d5f265a4c5ee43f784b2d8a6db1e0774a diff --git a/src/cclstr.c b/src/cclstr.c index a5b73d8..b457b6c 100644 --- a/src/cclstr.c +++ b/src/cclstr.c @@ -1,14 +1,15 @@ -/* - * Copyright (C) 1995-2008, Index Data ApS +/* This file is part of the YAZ toolkit. + * Copyright (C) 1995-2013 Index Data * See the file LICENSE for details. - * - * $Id: cclstr.c,v 1.4 2008-01-09 21:32:28 adam Exp $ */ -/** +/** * \file cclstr.c * \brief Implements CCL string compare utilities */ -#include +#if HAVE_CONFIG_H +#include +#endif +#include #include #include @@ -16,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; @@ -59,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