GCC Middle and Back End API Reference
|
#include <json.h>
Public Member Functions | |
string (const char *utf8) | |
string (const char *utf8, size_t len) | |
~string () | |
enum kind | get_kind () const final override |
void | print (pretty_printer *pp, bool formatted) const final override |
const char * | get_string () const |
size_t | get_length () const |
void | dump (FILE *, bool formatted) const |
Private Attributes | |
char * | m_utf8 |
size_t | m_len |
Subclass of value for strings.
class json::string, a subclass of json::value.
json::string's ctor.
References gcc_assert, ggc_alloc(), m_len, and m_utf8.
References gcc_assert, ggc_alloc(), m_len, and m_utf8.
class json::value.
Dump this json::value tree to OUTF. The key/value pairs of json::objects are printed in the order in which the keys were originally inserted.
References ggc_alloc(), pp_buffer, pp_flush(), and json::value::print().
Referenced by json_output_format::flush_to_file(), and generate_results().
Implements json::value.
References json::JSON_STRING.
|
finaloverridevirtual |
Implementation of json::value::print for json::string.
Implements json::value.
References m_len, m_utf8, and print_escaped_json_string().
|
private |
Referenced by get_length(), print(), string(), and string().
|
private |
Referenced by get_string(), print(), string(), string(), and ~string().