|
YAZ 5.35.1
|
Implements CQL to XCQL conversion. More...
Go to the source code of this file.
Functions | |
| static void | pr_n (const char *buf, void(*pr)(const char *buf, void *client_data), void *client_data, int n) |
| static void | pr_cdata (const char *buf, void(*pr)(const char *buf, void *client_data), void *client_data) |
| static void | prefixes (struct cql_node *cn, void(*pr)(const char *buf, void *client_data), void *client_data, int level) |
| static void | cql_to_xml_mod (struct cql_node *m, void(*pr)(const char *buf, void *client_data), void *client_data, int level) |
| static void | cql_sort_to_xml (struct cql_node *cn, void(*pr)(const char *buf, void *client_data), void *client_data, int level) |
| static void | cql_to_xml_r (struct cql_node *cn, void(*pr)(const char *buf, void *client_data), void *client_data, int level, struct cql_node *sort_node) |
| void | cql_to_xml (struct cql_node *cn, void(*pr)(const char *buf, void *client_data), void *client_data) |
| converts CQL tree to XCQL and writes to user-defined stream | |
| void | cql_to_xml_stdio (struct cql_node *cn, FILE *f) |
| converts CQL tree to XCQL and writes to file | |
| void | cql_buf_write_handler (const char *b, void *client_data) |
| Handler for cql_buf_write_info. | |
| int | cql_to_xml_buf (struct cql_node *cn, char *out, int max) |
| converts CQL tree to XCQL and writes result to buffer | |
Implements CQL to XCQL conversion.
Definition in file xcqlutil.c.
| void cql_buf_write_handler | ( | const char * | b, |
| void * | client_data | ||
| ) |
Handler for cql_buf_write_info.
Definition at line 251 of file xcqlutil.c.
References cql_buf_write_info::buf, cql_buf_write_info::max, and cql_buf_write_info::off.
Referenced by cql_sortby_to_sortkeys_buf(), cql_to_ccl_buf(), cql_to_xml_buf(), and cql_transform_buf().
|
static |
Definition at line 121 of file xcqlutil.c.
References cql_to_xml_mod(), cql_node::index, cql_node::modifiers, cql_node::next, pr_cdata(), pr_n(), cql_node::sort, and cql_node::u.
Referenced by cql_to_xml_r().
| void cql_to_xml | ( | struct cql_node * | cn, |
| void(*)(const char *buf, void *client_data) | pr, | ||
| void * | client_data | ||
| ) |
converts CQL tree to XCQL 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 239 of file xcqlutil.c.
References cql_to_xml_r().
Referenced by cql_to_xml_buf(), and cql_to_xml_stdio().
| int cql_to_xml_buf | ( | struct cql_node * | cn, |
| char * | out, | ||
| int | max | ||
| ) |
converts CQL tree to XCQL and writes result to buffer
| cn | CQL node (tree) |
| out | buffer |
| max | size of buffer (max chars to write) |
Definition at line 264 of file xcqlutil.c.
References cql_buf_write_info::buf, cql_buf_write_handler(), cql_to_xml(), cql_buf_write_info::max, and cql_buf_write_info::off.
|
static |
Definition at line 90 of file xcqlutil.c.
References cql_node::index, cql_node::modifiers, pr_cdata(), pr_n(), cql_node::relation, cql_node::st, cql_node::term, and cql_node::u.
Referenced by cql_sort_to_xml(), and cql_to_xml_r().
|
static |
Definition at line 147 of file xcqlutil.c.
References cql_node::boolean, CQL_NODE_BOOL, CQL_NODE_SORT, CQL_NODE_ST, cql_sort_to_xml(), cql_to_xml_mod(), cql_to_xml_r(), cql_node::extra_terms, cql_node::index, cql_node::left, cql_node::modifiers, pr_cdata(), pr_n(), prefixes(), cql_node::relation, cql_node::relation_uri, cql_node::right, cql_node::search, cql_node::sort, cql_node::st, cql_node::term, cql_node::u, cql_node::value, and cql_node::which.
Referenced by cql_to_xml(), and cql_to_xml_r().
| void cql_to_xml_stdio | ( | struct cql_node * | cn, |
| FILE * | f | ||
| ) |
converts CQL tree to XCQL and writes to file
| cn | CQL node (tree) |
| f | file handle |
Definition at line 246 of file xcqlutil.c.
References cql_fputs(), and cql_to_xml().
|
static |
Definition at line 29 of file xcqlutil.c.
Referenced by cql_sort_to_xml(), cql_to_xml_mod(), cql_to_xml_r(), and prefixes().
|
static |
Definition at line 19 of file xcqlutil.c.
Referenced by cql_sort_to_xml(), cql_to_xml_mod(), cql_to_xml_r(), and prefixes().
|
static |
Definition at line 57 of file xcqlutil.c.
References cql_node::index_uri, pr_cdata(), pr_n(), cql_node::relation, cql_node::relation_uri, cql_node::st, and cql_node::u.
Referenced by cql_to_xml_r().