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
CQL: fix extra terms in wrong order
[yaz-moved-to-github.git]
/
src
/
matchstr.c
diff --git
a/src/matchstr.c
b/src/matchstr.c
index
cd5af55
..
31fae98
100644
(file)
--- a/
src/matchstr.c
+++ b/
src/matchstr.c
@@
-1,5
+1,5
@@
/* This file is part of the YAZ toolkit.
/* This file is part of the YAZ toolkit.
- * Copyright (C) 1995-2008 Index Data
+ * Copyright (C) 1995-2012 Index Data
* See the file LICENSE for details.
*/
* See the file LICENSE for details.
*/
@@
-14,9
+14,9
@@
#include <stdio.h>
#include <assert.h>
#include <stdio.h>
#include <assert.h>
-#include <ctype.h>
#include <string.h>
#include <string.h>
-#include <yaz/match-str.h>
+#include <yaz/yaz-iconv.h>
+#include <yaz/matchstr.h>
int yaz_matchstr(const char *s1, const char *s2)
{
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 != '.')
{
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;
}
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
/*
* 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