/* This file is part of the YAZ toolkit.
- * Copyright (C) 1995-2013 Index Data
+ * Copyright (C) Index Data
* See the file LICENSE for details.
*/
#if HAVE_CONFIG_H
"@attr 5=104 a?b#c\\\\? "));
YAZ_CHECK(tst_ccl_query(bibset, "reg=\\(",
- "@attr 5=102 \\\\( "));
+ "( "));
YAZ_CHECK(tst_ccl_query(bibset, "z=\\(",
"( "));
+ YAZ_CHECK(tst_ccl_query(bibset, "z=a b#",
+ "@attr 5=104 \"a b#\" "));
+
YAZ_CHECK(tst_ccl_query(bibset, "reg=\\\"",
"\"\\\"\" "));
YAZ_CHECK(tst_ccl_query(bibset, "z=\\\"",
"\"\\\"\" "));
YAZ_CHECK(tst_ccl_query(bibset, "reg=.",
- "@attr 5=102 \\\\. "));
+ ". "));
YAZ_CHECK(tst_ccl_query(bibset, "z=.",
". "));
YAZ_CHECK(tst_ccl_query(bibset, "reg=\".\"",
- "@attr 5=102 \\\\. "));
+ ". "));
YAZ_CHECK(tst_ccl_query(bibset, "z=\".\"",
". "));
"@attr 5=104 ?\\\\? "));
YAZ_CHECK(tst_ccl_query(bibset, "reg=\"?\\?\"",
- "@attr 5=102 \\\\?\\\\? "));
+ "?? "));
YAZ_CHECK(tst_ccl_query(bibset, "z=\"?\\?\"",
- "@attr 5=104 \\\\?\\\\? "));
+ "?? "));
YAZ_CHECK(tst_ccl_query(bibset, "reg=\\\\",
- "@attr 5=102 \\\\\\\\ "));
+ "\\\\ "));
YAZ_CHECK(tst_ccl_query(bibset, "z=\\\\",
- "@attr 5=104 \\\\\\\\ "));
+ "\\\\ "));
YAZ_CHECK(tst_ccl_query(bibset, "\\\\",
"@attr 4=2 @attr 1=1016 \\\\ "));
ccl_qual_fitem(bibset, "u=4 s=pw t=l,r", "ti");
ccl_qual_fitem(bibset, "1=1016 s=al,pw t=z", "term");
+ YAZ_CHECK(tst_ccl_query(bibset, "a?#",
+ "@attr 5=104 @attr 4=2 @attr 1=1016 a?# "));
+
+ YAZ_CHECK(tst_ccl_query(bibset, "a b?#",
+ "@and @attr 4=2 @attr 1=1016 a @attr 5=104 @attr 4=2 @attr 1=1016 b?# "));
+
YAZ_CHECK(tst_ccl_query(bibset, "a*",
"@attr 4=2 @attr 1=1016 a* "));
"@attr 5=104 @attr 4=2 @attr 1=1016 a? "));
YAZ_CHECK(tst_ccl_query(bibset, "a?",
- "@attr 5=104 @attr 4=2 @attr 1=1016 a\\\\? "));
+ "@attr 4=2 @attr 1=1016 a? "));
+
+ ccl_qual_fitem(bibset, "?", "@mask");
+ YAZ_CHECK(tst_ccl_query(bibset, "a?",
+ "@attr 5=104 @attr 4=2 @attr 1=1016 a# "));
+
+
+ ccl_qual_fitem(bibset, "", "@mask");
+ ccl_qual_fitem(bibset, "", "@truncation");
+ YAZ_CHECK(tst_ccl_query(bibset, "a?#",
+ "@attr 4=2 @attr 1=1016 a?# "));
ccl_qual_fitem(bibset, "og", "@and");
ccl_qual_fitem(bibset, "eller", "@or");