jx_print.h
Go to the documentation of this file.
/*
Copyright (C) 2022 The University of Notre Dame
This software is distributed under the GNU General Public License.
See the file COPYING for details.
*/
#ifndef JX_PRINT_H
#define JX_PRINT_H
#include "jx.h"
#include "buffer.h"
#include "link.h"
#include <stdio.h>
char * jx_print_string( struct jx *j );
void jx_print_stream( struct jx *j, FILE *file );
void jx_print_shell( struct jx *j, FILE *file );
void jx_print_buffer( struct jx *j, buffer_t *buffer);
void jx_print_link( struct jx *j, struct link *l, time_t stoptime );
void jx_escape_string( const char *s, buffer_t *b );
void jx_print_args( struct jx *j, buffer_t *b );
const char * jx_operator_string( jx_operator_t type );
const char * jx_type_string( jx_type_t type );
// internal function for printing list comprehension expressions
void jx_comprehension_print(struct jx_comprehension *comp, buffer_t *b);
#endif
buffer.h
String Buffer Operations.
jx.h
JSON Expressions (JX) library.
jx_type_t
jx_type_t
JX atomic type.
Definition jx.h:43
jx_print_stream
void jx_print_stream(struct jx *j, FILE *file)
Print a JX expression to a standard I/O stream.
jx_type_string
const char * jx_type_string(jx_type_t type)
Get a string representation of an object type.
jx_print_link
void jx_print_link(struct jx *j, struct link *l, time_t stoptime)
Print a JX expression to a link.
jx_operator_string
const char * jx_operator_string(jx_operator_t type)
Get a string representation of an operator.
jx_escape_string
void jx_escape_string(const char *s, buffer_t *b)
Print a C string in JSON format (with escape codes) into a buffer.
jx_print_string
char * jx_print_string(struct jx *j)
Convert a JX expression into a string.
jx_print_buffer
void jx_print_buffer(struct jx *j, buffer_t *buffer)
Print a JX expression to a buffer.
jx_print_shell
void jx_print_shell(struct jx *j, FILE *file)
Print a JX object as shell environment variables.
jx_print_args
void jx_print_args(struct jx *j, buffer_t *b)
Print a list of arguments to a buffer.
link.h
A high level TCP connection library.
buffer
Definition buffer.h:26
jx_comprehension
Definition jx.h:59
jx
JX value representing any expression type.
Definition jx.h:117