|
YAZ 5.35.1
|
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.
Macros | |
| #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) |
| int | ccl_qual_fitem2 (CCL_bibset bibset, const char *cp, const char *qual_name, const char **addinfo) |
| 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 21 of file cclqfile.c.
| void ccl_qual_buf | ( | CCL_bibset | bibset, |
| const char * | buf | ||
| ) |
Add CCL qualifier as buf spec(multiple lines).
Definition at line 261 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 233 of file cclqfile.c.
References ccl_qual_field2(), yaz_log(), and YLOG_WARN.
| int ccl_qual_field2 | ( | CCL_bibset | bibset, |
| const char * | cp, | ||
| const char * | qual_name, | ||
| const char ** | addinfo | ||
| ) |
Definition at line 23 of file cclqfile.c.
References CCL_BIB1_COM, CCL_BIB1_POS, CCL_BIB1_REL, CCL_BIB1_REL_OMIT_EQUALS, CCL_BIB1_REL_ORDER, CCL_BIB1_REL_PORDER, CCL_BIB1_STR, CCL_BIB1_STR_AND_LIST, CCL_BIB1_STR_AUTO_GROUP, CCL_BIB1_STR_OR_LIST, CCL_BIB1_STR_SPLIT_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_REGEX, CCL_BIB1_TRU_CAN_RIGHT, CCL_BIB1_TRU_CAN_Z3958, CCL_BIB1_USE, ccl_qual_add_combi(), ccl_qual_add_set(), ccl_stricmp(), MAX_QUAL, type, 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(), and ccl_qual_fitem2().
| void ccl_qual_file | ( | CCL_bibset | bibset, |
| FILE * | inf | ||
| ) |
Read CCL qualifier list spec from file inf
Definition at line 316 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 255 of file cclqfile.c.
References ccl_qual_fitem2().
Referenced by ccl_qual_line(), and ccl_xml_config_qual().
| int ccl_qual_fitem2 | ( | CCL_bibset | bibset, |
| const char * | cp, | ||
| const char * | qual_name, | ||
| const char ** | addinfo | ||
| ) |
Definition at line 241 of file cclqfile.c.
References ccl_qual_add_special(), and ccl_qual_field2().
Referenced by ccl_qual_fitem().
| int ccl_qual_fname | ( | CCL_bibset | bibset, |
| const char * | fname | ||
| ) |
Read CCL qualifier list spec from file inf
Definition at line 324 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 286 of file cclqfile.c.
References ccl_qual_fitem().
Referenced by ccl_qual_buf(), and ccl_qual_file().