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 |
void DEBUG_FUNCTION | dump () const |
Private Attributes | |
char * | m_utf8 |
size_t | m_len |
Subclass of value for strings.
|
explicit |
class json::string, a subclass of json::value.
json::string's ctor.
References gcc_assert, m_len, and m_utf8.
string::string | ( | const char * | utf8, |
size_t | len ) |
References gcc_assert, m_len, and m_utf8.
|
inherited |
A convenience function for debugging. Dump to stderr with formatting, and a trailing newline.
References json::value::dump().
Referenced by json::value::dump().
|
inherited |
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 output_buffer::m_stream, pp_buffer(), pp_flush(), and json::value::print().
Referenced by generate_results().
|
inlinefinaloverridevirtual |
Implements json::value.
References json::JSON_STRING.
|
inline |
References m_len.
|
inline |
References m_utf8.
|
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().