From: Adam Dickmeiss Date: Wed, 18 Sep 2013 09:27:20 +0000 (+0200) Subject: CCL: allow quoted terms for date ranges YAZ-681 X-Git-Tag: v4.2.67~4 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=f6e09298ab71294db809f1f657e90997f81c91ea;p=yaz-moved-to-github.git CCL: allow quoted terms for date ranges YAZ-681 --- 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; }