From f6e09298ab71294db809f1f657e90997f81c91ea Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Wed, 18 Sep 2013 11:27:20 +0200 Subject: [PATCH] CCL: allow quoted terms for date ranges YAZ-681 --- src/cclfind.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/cclfind.c b/src/cclfind.c index aa4b303..8a74f5b 100644 --- a/src/cclfind.c +++ b/src/cclfind.c @@ -687,9 +687,14 @@ struct ccl_rpn_node *qualifiers_order(CCL_parser cclp, if (KIND == CCL_TOK_TERM) { size_t i; + int quote_mode = 0; for (i = 0; ilook_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; } -- 1.7.10.4