|
YAZ
4.2.57
|
Implements CQL to CCL conversion. More...
Go to the source code of this file.
Functions | |
| static int | cql_to_ccl_r (struct cql_node *cn, void(*pr)(const char *buf, void *client_data), void *client_data) |
| static void | pr_term (const char **cpp, int stop_at_space, void(*pr)(const char *buf, void *client_data), void *client_data) |
| static int | node (struct cql_node *cn, void(*pr)(const char *buf, void *client_data), void *client_data) |
| static int | bool (struct cql_node *cn, void(*pr)(const char *buf, void *client_data), void *client_data) |
| int | cql_to_ccl (struct cql_node *cn, void(*pr)(const char *buf, void *client_data), void *client_data) |
| converts CQL tree to CCL and writes to user-defined stream | |
| void | cql_to_ccl_stdio (struct cql_node *cn, FILE *f) |
| converts CQL tree to CCL and writes to file | |
| int | cql_to_ccl_buf (struct cql_node *cn, char *out, int max) |
| converts CQL tree to CCL and writes result to buffer | |
Implements CQL to CCL conversion.
Definition in file cql2ccl.c.
|
static |
Definition at line 162 of file cql2ccl.c.
References cql_node::boolean, CQL_NODE_ST, cql_to_ccl_r(), cql_node::st, cql_node::u, and cql_node::which.
Referenced by cql_to_ccl_r().
| int cql_to_ccl | ( | struct cql_node * | cn, |
| void(*)(const char *buf, void *client_data) | pr, | ||
| void * | client_data | ||
| ) |
converts CQL tree to CCL and writes to user-defined stream
| cn | CQL node (tree) |
| pr | print function |
| client_data | data to be passed to pr function |
Definition at line 249 of file cql2ccl.c.
References cql_to_ccl_r().
Referenced by cql_to_ccl_buf(), and cql_to_ccl_stdio().
| int cql_to_ccl_buf | ( | struct cql_node * | cn, |
| char * | out, | ||
| int | max | ||
| ) |
converts CQL tree to CCL and writes result to buffer
| cn | CQL node (tree) |
| out | buffer |
| max | size of buffer (max chars to write) |
| 0 | OK |
| -1 | conversion error |
| -2 | buffer too small (truncated) |
Definition at line 261 of file cql2ccl.c.
References cql_buf_write_info::buf, cql_buf_write_handler(), cql_to_ccl(), cql_buf_write_info::max, and cql_buf_write_info::off.
|
static |
Definition at line 230 of file cql2ccl.c.
References bool(), CQL_NODE_BOOL, CQL_NODE_SORT, CQL_NODE_ST, node(), cql_node::sort, cql_node::u, and cql_node::which.
Referenced by bool(), and cql_to_ccl().
| void cql_to_ccl_stdio | ( | struct cql_node * | cn, |
| FILE * | f | ||
| ) |
converts CQL tree to CCL and writes to file
| cn | CQL node (tree) |
| f | file handle |
Definition at line 256 of file cql2ccl.c.
References cql_fputs(), and cql_to_ccl().
|
static |
Definition at line 86 of file cql2ccl.c.
References pr_term(), cql_node::st, and cql_node::u.
Referenced by ccl2pqf(), cql_to_ccl_r(), qualifier_list(), search_elements(), yaz_query2xml_apt(), yaz_query2xml_attribute_element(), yaz_query2xml_rpnstructure(), yaz_query2xml_term(), yaz_solr_decode_facet_counts(), yaz_solr_decode_facet_field(), yaz_solr_decode_misspelled(), yaz_solr_decode_result_docs(), yaz_solr_decode_scan_result(), yaz_solr_decode_suggestion_lst(), yaz_solr_decode_suggestion_values(), yaz_sru_proxy_decode_facet_field(), and yaz_sru_proxy_decode_facets().
1.8.1.2