Implements parsing of CCL qualifier specs in files. More...
#include <stdio.h>#include <stdlib.h>#include <string.h>#include <yaz/tokenizer.h>#include <yaz/ccl.h>#include <yaz/log.h>Go to the source code of this file.
Defines | |
| #define | MAX_QUAL 128 |
Functions | |
| int | ccl_qual_field2 (CCL_bibset bibset, const char *cp, const char *qual_name, const char **addinfo) |
| void | ccl_qual_field (CCL_bibset bibset, const char *cp, const char *qual_name) |
| void | ccl_qual_fitem (CCL_bibset bibset, const char *cp, const char *qual_name) |
| void | ccl_qual_buf (CCL_bibset bibset, const char *buf) |
| void | ccl_qual_line (CCL_bibset bibset, char *line) |
| void | ccl_qual_file (CCL_bibset bibset, FILE *inf) |
| int | ccl_qual_fname (CCL_bibset bibset, const char *fname) |
Implements parsing of CCL qualifier specs in files.
Definition in file cclqfile.c.
| #define MAX_QUAL 128 |
Definition at line 18 of file cclqfile.c.
Referenced by ccl_qual_field2().
| void ccl_qual_buf | ( | CCL_bibset | bibset, | |
| const char * | buf | |||
| ) |
Add CCL qualifier as buf spec(multiple lines).
Definition at line 236 of file cclqfile.c.
References ccl_qual_line().
Referenced by ZOOM_query_ccl2rpn().
| void ccl_qual_field | ( | CCL_bibset | bibset, | |
| const char * | cp, | |||
| const char * | qual_name | |||
| ) |
Definition at line 220 of file cclqfile.c.
References ccl_qual_field2(), yaz_log(), and YLOG_WARN.
Referenced by ccl_qual_fitem().
| int ccl_qual_field2 | ( | CCL_bibset | bibset, | |
| const char * | cp, | |||
| const char * | qual_name, | |||
| const char ** | addinfo | |||
| ) |
Definition at line 20 of file cclqfile.c.
References CCL_BIB1_COM, CCL_BIB1_POS, CCL_BIB1_REL, CCL_BIB1_REL_ORDER, CCL_BIB1_REL_PORDER, CCL_BIB1_STR, CCL_BIB1_STR_AND_LIST, CCL_BIB1_STR_OR_LIST, CCL_BIB1_STR_WP, CCL_BIB1_TRU, CCL_BIB1_TRU_CAN_BOTH, CCL_BIB1_TRU_CAN_LEFT, CCL_BIB1_TRU_CAN_NONE, CCL_BIB1_TRU_CAN_RIGHT, CCL_BIB1_USE, ccl_qual_add_combi(), ccl_qual_add_set(), ccl_stricmp(), MAX_QUAL, ccl_rpn_attr::type, ccl_rpn_attr::value, xfree, xstrdup, yaz_tok_cfg_create(), yaz_tok_cfg_destroy(), yaz_tok_cfg_single_tokens(), yaz_tok_move(), yaz_tok_parse_buf(), yaz_tok_parse_destroy(), yaz_tok_parse_string(), and YAZ_TOK_STRING.
Referenced by ccl_qual_field().
| void ccl_qual_file | ( | CCL_bibset | bibset, | |
| FILE * | inf | |||
| ) |
Read CCL qualifier list spec from file inf
Definition at line 291 of file cclqfile.c.
References ccl_qual_line().
Referenced by ccl_qual_fname(), and xml_config_read().
| void ccl_qual_fitem | ( | CCL_bibset | bibset, | |
| const char * | cp, | |||
| const char * | qual_name | |||
| ) |
Definition at line 228 of file cclqfile.c.
References ccl_qual_add_special(), and ccl_qual_field().
Referenced by ccl_qual_line().
| int ccl_qual_fname | ( | CCL_bibset | bibset, | |
| const char * | fname | |||
| ) |
Read CCL qualifier list spec from file inf
Definition at line 299 of file cclqfile.c.
References ccl_qual_file().
| void ccl_qual_line | ( | CCL_bibset | bibset, | |
| char * | line | |||
| ) |
Add CCL qualifier as line spec. Note: line is _modified_
Definition at line 261 of file cclqfile.c.
References ccl_qual_fitem().
Referenced by ccl_qual_buf(), and ccl_qual_file().
1.6.3