|
YAZ 5.35.1
|
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_st (struct cql_node *cn, void(*pr)(const char *buf, void *client_data), void *client_data) |
| static int | node_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.
| 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 CQL_NODE_BOOL, CQL_NODE_SORT, CQL_NODE_ST, cql_to_ccl_r(), node_bool(), node_st(), cql_node::search, cql_node::sort, cql_node::u, and cql_node::which.
Referenced by cql_to_ccl(), cql_to_ccl_r(), and node_bool().
| 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 162 of file cql2ccl.c.
References cql_node::boolean, CQL_NODE_ST, cql_strcmp(), cql_to_ccl_r(), cql_node::index, cql_node::left, cql_node::modifiers, cql_node::relation, cql_node::right, cql_node::st, cql_node::term, cql_node::u, cql_node::value, and cql_node::which.
Referenced by cql_to_ccl_r().
|
static |
Definition at line 86 of file cql2ccl.c.
References cql_strcmp(), cql_node::extra_terms, cql_node::index, pr_term(), cql_node::relation, cql_node::st, cql_node::term, and cql_node::u.
Referenced by cql_to_ccl_r().