projects
/
yaz-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add support for extra parameters
[yaz-moved-to-github.git]
/
src
/
cclstr.c
diff --git
a/src/cclstr.c
b/src/cclstr.c
index
8f46054
..
a970643
100644
(file)
--- a/
src/cclstr.c
+++ b/
src/cclstr.c
@@
-1,12
+1,15
@@
/* This file is part of the YAZ toolkit.
/* This file is part of the YAZ toolkit.
- * Copyright (C) 1995-2009 Index Data
+ * Copyright (C) 1995-2011 Index Data
* See the file LICENSE for details.
*/
/**
* \file cclstr.c
* \brief Implements CCL string compare utilities
*/
* See the file LICENSE for details.
*/
/**
* \file cclstr.c
* \brief Implements CCL string compare utilities
*/
-#include <ctype.h>
+#if HAVE_CONFIG_H
+#include <config.h>
+#endif
+#include <yaz/yaz-iconv.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdlib.h>
@@
-14,7
+17,10
@@
static int ccli_toupper (int c)
{
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;
}
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
/*
* Local variables:
* c-basic-offset: 4
+ * c-file-style: "Stroustrup"
* indent-tabs-mode: nil
* End:
* vim: shiftwidth=4 tabstop=8 expandtab
* indent-tabs-mode: nil
* End:
* vim: shiftwidth=4 tabstop=8 expandtab