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
Change local counter to size_t
[yaz-moved-to-github.git]
/
src
/
cclfind.c
diff --git
a/src/cclfind.c
b/src/cclfind.c
index
aa4b303
..
1d4f6c6
100644
(file)
--- a/
src/cclfind.c
+++ b/
src/cclfind.c
@@
-1,5
+1,5
@@
/* This file is part of the YAZ toolkit.
/* This file is part of the YAZ toolkit.
- * Copyright (C) 1995-2013 Index Data
+ * Copyright (C) Index Data
* See the file LICENSE for details.
*/
/**
* See the file LICENSE for details.
*/
/**
@@
-687,9
+687,14
@@
struct ccl_rpn_node *qualifiers_order(CCL_parser cclp,
if (KIND == CCL_TOK_TERM)
{
size_t i;
if (KIND == CCL_TOK_TERM)
{
size_t i;
+ int quote_mode = 0;
for (i = 0; i<cclp->look_token->len; i++)
{
for (i = 0; i<cclp->look_token->len; i++)
{
- if (cclp->look_token->name[i] == '-')
+ if (i > 0 && cclp->look_token->name[i] == '\\')
+ ;
+ else if (cclp->look_token->name[i] == '"')
+ quote_mode = !quote_mode;
+ else if (cclp->look_token->name[i] == '-' && !quote_mode)
break;
}
break;
}