cctools
|
Print JX expressions to strings, files, and buffers. More...
Go to the source code of this file.
Functions | |
char * | jx_print_string (struct jx *j) |
Convert a JX expression into a string. More... | |
void | jx_print_stream (struct jx *j, FILE *file) |
Print a JX expression to a standard I/O stream. More... | |
void | jx_print_buffer (struct jx *j, buffer_t *buffer) |
Print a JX expression to a buffer. More... | |
void | jx_print_link (struct jx *j, struct link *l, time_t stoptime) |
Print a JX expression to a link. More... | |
void | jx_escape_string (const char *s, buffer_t *b) |
Print a C string in JSON format (with escape codes) into a buffer. More... | |
void | jx_print_args (struct jx *j, buffer_t *b) |
Print a list of arguments to a buffer. More... | |
const char * | jx_operator_string (jx_operator_t type) |
Get a string representation of an operator. More... | |
const char * | jx_type_string (jx_type_t type) |
Get a string representation of an object type. More... | |
Print JX expressions to strings, files, and buffers.
char* jx_print_string | ( | struct jx * | j | ) |
Convert a JX expression into a string.
j | A JX expression. |
void jx_print_stream | ( | struct jx * | j, |
FILE * | file | ||
) |
Print a JX expression to a standard I/O stream.
j | A JX expression. |
file | A standard IO stream. |
Print a JX expression to a buffer.
j | A JX expression. |
buffer | The buffer for output. |
void jx_print_link | ( | struct jx * | j, |
struct link * | l, | ||
time_t | stoptime | ||
) |
Print a JX expression to a link.
j | A JX expression. |
l | The network link to write. |
stoptime | The absolute time to stop. |
void jx_escape_string | ( | const char * | s, |
buffer_t * | b | ||
) |
Print a C string in JSON format (with escape codes) into a buffer.
s | A C string. |
b | The buffer for output. |
Print a list of arguments to a buffer.
j | Array of arguments to print. |
b | The buffer for output. |
const char* jx_operator_string | ( | jx_operator_t | type | ) |
Get a string representation of an operator.
type | The operator to get. |
const char* jx_type_string | ( | jx_type_t | type | ) |
Get a string representation of an object type.
type | The object type to get. |