YAZ
5.34.0
|
Header for PQF parsing. More...
Go to the source code of this file.
Macros | |
#define | YAZ_PQF_ERROR_NONE 0 |
#define | YAZ_PQF_ERROR_EXTRA 1 |
#define | YAZ_PQF_ERROR_MISSING 2 |
#define | YAZ_PQF_ERROR_ATTSET 3 |
#define | YAZ_PQF_ERROR_TOOMANY 4 |
#define | YAZ_PQF_ERROR_BADATTR 5 |
#define | YAZ_PQF_ERROR_INTERNAL 6 |
#define | YAZ_PQF_ERROR_PROXIMITY 7 |
#define | YAZ_PQF_ERROR_BAD_INTEGER 8 |
Typedefs | |
typedef struct yaz_pqf_parser * | YAZ_PQF_Parser |
Functions | |
Z_RPNQuery * | p_query_rpn (ODR o, const char *qbuf) |
YAZ_PQF_Parser | yaz_pqf_create (void) |
Z_RPNQuery * | yaz_pqf_parse (YAZ_PQF_Parser p, ODR o, const char *qbuf) |
Z_AttributesPlusTerm * | yaz_pqf_scan (YAZ_PQF_Parser p, ODR o, Odr_oid **attributeSetId, const char *qbuf) |
Z_AttributeList * | yaz_pqf_scan_attribute_list (YAZ_PQF_Parser p, ODR o, Odr_oid **attributeSetId, const char *qbuf) |
Z_FacetList * | yaz_pqf_parse_facet_list (ODR odr, const char *args) |
void | yaz_pqf_destroy (YAZ_PQF_Parser p) |
int | yaz_pqf_error (YAZ_PQF_Parser p, const char **msg, size_t *off) |
Z_Term * | z_Term_create (ODR o, int term_type, const char *buf, size_t len) |
Header for PQF parsing.
Definition in file pquery.h.
typedef struct yaz_pqf_parser* YAZ_PQF_Parser |
Z_RPNQuery* p_query_rpn | ( | ODR | o, |
const char * | qbuf | ||
) |
Definition at line 699 of file pquery.c.
References yaz_pqf_parser::error, yaz_pqf_parser::escape_char, yaz_pqf_parser::left_sep, p_query_rpn_mk(), pqf_parser_begin(), yaz_pqf_parser::right_sep, yaz_pqf_parser::term_type, and Z_Term_general.
Referenced by generate().
YAZ_PQF_Parser yaz_pqf_create | ( | void | ) |
Definition at line 798 of file pquery.c.
References yaz_pqf_parser::error, yaz_pqf_parser::escape_char, yaz_pqf_parser::left_sep, yaz_pqf_parser::right_sep, yaz_pqf_parser::term_type, xmalloc, and Z_Term_general.
Referenced by ccl_rpn_query(), ccl_scan_query(), cql2pqf(), parse_facet(), srw_bend_scan(), and srw_bend_search().
void yaz_pqf_destroy | ( | YAZ_PQF_Parser | p | ) |
Definition at line 811 of file pquery.c.
References xfree.
Referenced by ccl_rpn_query(), ccl_scan_query(), cql2pqf(), parse_facet(), srw_bend_scan(), and srw_bend_search().
int yaz_pqf_error | ( | YAZ_PQF_Parser | p, |
const char ** | msg, | ||
size_t * | off | ||
) |
Definition at line 907 of file pquery.c.
References yaz_pqf_parser::error, yaz_pqf_parser::query_buf, yaz_pqf_parser::query_ptr, YAZ_PQF_ERROR_ATTSET, YAZ_PQF_ERROR_BAD_INTEGER, YAZ_PQF_ERROR_BADATTR, YAZ_PQF_ERROR_EXTRA, YAZ_PQF_ERROR_INTERNAL, YAZ_PQF_ERROR_MISSING, YAZ_PQF_ERROR_NONE, YAZ_PQF_ERROR_PROXIMITY, and YAZ_PQF_ERROR_TOOMANY.
Referenced by cql2pqf(), and srw_bend_search().
Z_RPNQuery* yaz_pqf_parse | ( | YAZ_PQF_Parser | p, |
ODR | o, | ||
const char * | qbuf | ||
) |
Definition at line 816 of file pquery.c.
References p_query_rpn_mk(), and pqf_parser_begin().
Referenced by ccl_rpn_query(), cql2pqf(), and srw_bend_search().
Z_FacetList* yaz_pqf_parse_facet_list | ( | ODR | odr, |
const char * | args | ||
) |
Definition at line 882 of file pquery.c.
References Z_FacetList::elements, nmem_strsplit(), Z_FacetList::num, odr_getmem, odr_malloc(), and parse_facet().
Referenced by yaz_sru_facet_request(), Z3950_send_search(), and ZOOM_connection_srw_send_search().
Z_AttributesPlusTerm* yaz_pqf_scan | ( | YAZ_PQF_Parser | p, |
ODR | o, | ||
Odr_oid ** | attributeSetId, | ||
const char * | qbuf | ||
) |
Definition at line 824 of file pquery.c.
References p_query_scan_mk(), and pqf_parser_begin().
Referenced by ccl_scan_query(), and srw_bend_scan().
Z_AttributeList* yaz_pqf_scan_attribute_list | ( | YAZ_PQF_Parser | p, |
ODR | o, | ||
Odr_oid ** | attributeSetId, | ||
const char * | qbuf | ||
) |
Definition at line 834 of file pquery.c.
References p_query_scan_attributes_mk(), and pqf_parser_begin().
Definition at line 323 of file pquery.c.
References Z_Term::characterString, Z_Term::external, Z_Term::general, Z_Term::null, Z_Term::numeric, odr_atoi(), odr_create_Odr_oct(), odr_intdup(), odr_malloc(), odr_nullval(), odr_strdupn(), Z_Term::u, Z_Term::which, Z_Term_characterString, Z_Term_external, Z_Term_general, Z_Term_null, and Z_Term_numeric.
Referenced by facet_term_create_cstr(), parse_facet(), and rpn_term_attributes().