* Copyright (C) 1995-2005, Index Data ApS
* See the file LICENSE for details.
*
- * $Id: cclp.h,v 1.1 2007-04-25 20:52:19 adam Exp $
+ * $Id: cclp.h,v 1.5 2007-05-01 12:22:11 adam Exp $
*/
+/**
+ * \file cclp.h
+ * \brief CCL header with private definitions
+ */
#include <yaz/ccl.h>
#define CCL_TOK_EOL 0
#define CCL_TOK_NOT 10
#define CCL_TOK_SET 11
+typedef struct ccl_qualifier *ccl_qualifier_t;
/** CCL token */
struct ccl_token {
CCL_bibset bibset;
/** names of and operator */
- char *ccl_token_and;
+ const char **ccl_token_and;
/** names of or operator */
- char *ccl_token_or;
+ const char **ccl_token_or;
/** names of not operator */
- char *ccl_token_not;
+ const char **ccl_token_not;
/** names of set operator */
- char *ccl_token_set;
+ const char **ccl_token_set;
/** 1=CCL parser is case sensitive, 0=case insensitive */
int ccl_case_sensitive;
};
struct ccl_token *list);
+YAZ_EXPORT
+ccl_qualifier_t ccl_qual_search(CCL_parser cclp, const char *name,
+ size_t name_len, int seq);
+
+YAZ_EXPORT
+struct ccl_rpn_attr *ccl_qual_get_attr(ccl_qualifier_t q);
+
+YAZ_EXPORT
+const char *ccl_qual_get_name(ccl_qualifier_t q);
/*
* Local variables: