Logo Search packages:      
Sourcecode: yaz version File versions

ccl.h File Reference


Detailed Description

Header with public definitions for CCL.

Definition in file ccl.h.

#include <yaz/yconfig.h>
#include <stdio.h>
#include <yaz/xmalloc.h>
#include <yaz/wrbuf.h>

Go to the source code of this file.

Classes

struct  ccl_parser
struct  ccl_qualifier
struct  ccl_rpn_attr
struct  ccl_rpn_node
struct  ccl_token

Defines

#define ccl_assert(x)   ;
#define CCL_BIB1_COM   6
#define CCL_BIB1_POS   3
#define CCL_BIB1_REL   2
#define CCL_BIB1_REL_ORDER   (-1)
#define CCL_BIB1_REL_PORDER   (-2)
#define CCL_BIB1_STR   4
#define CCL_BIB1_STR_AND_LIST   (-2)
#define CCL_BIB1_STR_OR_LIST   (-3)
#define CCL_BIB1_STR_WP   (-1)
#define CCL_BIB1_TRU   5
#define CCL_BIB1_TRU_CAN_BOTH   (-3)
#define CCL_BIB1_TRU_CAN_LEFT   (-1)
#define CCL_BIB1_TRU_CAN_NONE   (-4)
#define CCL_BIB1_TRU_CAN_RIGHT   (-2)
#define CCL_BIB1_USE   1
#define CCL_ERR_BAD_RELATION   9
#define CCL_ERR_BAD_RP   5
#define CCL_ERR_DOUBLE_QUAL   7
#define CCL_ERR_EQ_EXPECTED   8
#define CCL_ERR_OK   0
#define CCL_ERR_OP_EXPECTED   4
#define CCL_ERR_RP_EXPECTED   2
#define CCL_ERR_SETNAME_EXPECTED   3
#define CCL_ERR_TERM_EXPECTED   1
#define CCL_ERR_TRUNC_NOT_BOTH   11
#define CCL_ERR_TRUNC_NOT_LEFT   10
#define CCL_ERR_TRUNC_NOT_RIGHT   12
#define CCL_ERR_UNKNOWN_QUAL   6
#define CCL_RPN_AND   1
#define CCL_RPN_ATTR_NUMERIC   1
#define CCL_RPN_ATTR_STRING   2
#define CCL_RPN_NOT   3
#define CCL_RPN_OR   2
#define CCL_RPN_PROX   6
#define CCL_RPN_SET   5
#define CCL_RPN_TERM   4
#define CCL_TOK_AND   8
#define CCL_TOK_COMMA   7
#define CCL_TOK_EOL   0
#define CCL_TOK_EQ   3
#define CCL_TOK_LP   5
#define CCL_TOK_NOT   10
#define CCL_TOK_OR   9
#define CCL_TOK_PROX   4
#define CCL_TOK_REL   2
#define CCL_TOK_RP   6
#define CCL_TOK_SET   11
#define CCL_TOK_TERM   1

Typedefs

typedef struct ccl_qualifiersCCL_bibset
typedef struct ccl_parserCCL_parser

Functions

YAZ_EXPORT const char * ccl_err_msg (int ccl_errno)
YAZ_EXPORT struct ccl_rpn_nodeccl_find (CCL_bibset abibset, struct ccl_token *list, int *error, const char **pos)
YAZ_EXPORT struct ccl_rpn_nodeccl_find_str (CCL_bibset bibset, const char *str, int *error, int *pos)
YAZ_EXPORT int ccl_memicmp (const char *s1, const char *s2, size_t n)
YAZ_EXPORT CCL_parser ccl_parser_create (void)
YAZ_EXPORT void ccl_parser_destroy (CCL_parser p)
YAZ_EXPORT struct ccl_rpn_nodeccl_parser_find (CCL_parser cclp, struct ccl_token *list)
YAZ_EXPORT void ccl_parser_set_case (CCL_parser p, int case_sensitivity_flag)
YAZ_EXPORT void ccl_parser_set_op_and (CCL_parser p, const char *op)
YAZ_EXPORT void ccl_parser_set_op_not (CCL_parser p, const char *op)
YAZ_EXPORT void ccl_parser_set_op_or (CCL_parser p, const char *op)
YAZ_EXPORT void ccl_parser_set_op_set (CCL_parser p, const char *op)
YAZ_EXPORT struct ccl_tokenccl_parser_tokenize (CCL_parser cclp, const char *command)
YAZ_EXPORT void ccl_pquery (WRBUF w, struct ccl_rpn_node *p)
YAZ_EXPORT void ccl_pr_tree (struct ccl_rpn_node *rpn, FILE *fd_out)
YAZ_EXPORT void ccl_qual_add (CCL_bibset b, const char *name, int no, int *attr)
YAZ_EXPORT void ccl_qual_add_combi (CCL_bibset b, const char *n, const char *names)
YAZ_EXPORT void ccl_qual_add_set (CCL_bibset b, const char *name, int no, int *type, int *value, char **svalue, char **attsets)
YAZ_EXPORT void ccl_qual_add_special (CCL_bibset bibset, const char *n, const char *v)
YAZ_EXPORT void ccl_qual_buf (CCL_bibset bibset, const char *buf)
YAZ_EXPORT void ccl_qual_file (CCL_bibset bibset, FILE *inf)
YAZ_EXPORT void ccl_qual_fitem (CCL_bibset bibset, const char *value, const char *qual_name)
YAZ_EXPORT int ccl_qual_fname (CCL_bibset bibset, const char *fname)
YAZ_EXPORT void ccl_qual_line (CCL_bibset bibset, char *line)
YAZ_EXPORT CCL_bibset ccl_qual_mk (void)
YAZ_EXPORT void ccl_qual_rm (CCL_bibset *b)
YAZ_EXPORT struct ccl_rpn_attrccl_qual_search (CCL_parser cclp, const char *name, size_t len, int seq)
YAZ_EXPORT const char * ccl_qual_search_special (CCL_bibset b, const char *name)
YAZ_EXPORT void ccl_rpn_delete (struct ccl_rpn_node *rpn)
YAZ_EXPORT char * ccl_strdup (const char *str)
YAZ_EXPORT int ccl_stricmp (const char *s1, const char *s2)
YAZ_EXPORT struct ccl_tokenccl_token_add (struct ccl_token *at)
YAZ_EXPORT void ccl_token_del (struct ccl_token *list)
YAZ_EXPORT struct ccl_tokenccl_token_simple (const char *command)
YAZ_EXPORT struct ccl_tokenccl_tokenize (const char *command)

Variables

int(* ccl_toupper )(int c)


Generated by  Doxygen 1.6.0   Back to index