GCC Middle and Back End API Reference
json.cc File Reference
#include "config.h"
#include "system.h"
#include "coretypes.h"
#include "json.h"
#include "pretty-print.h"
#include "math.h"
#include "selftest.h"
Include dependency graph for json.cc:


static void print_escaped_json_string (pretty_printer *pp, const char *utf8_str, size_t len)

Function Documentation

◆ print_escaped_json_string()

static void print_escaped_json_string ( pretty_printer * pp,
const char * utf8_str,
size_t len )
Print a JSON string to PP, escaping '"', control characters,
and embedded null bytes.
The string is required to be UTF-8 encoded.   

References ggc_alloc(), i, pp_character(), and pp_string().

Referenced by json::object::print(), and json::string::print().