MCPcopy Create free account
hub / github.com/crawl/crawl / json_encode_string

Function json_encode_string

crawl-ref/source/json.cc:414–422  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

412}
413
414char *json_encode_string(const char *str)
415{
416 SB sb;
417 sb_init(&sb);
418
419 emit_string(&sb, str);
420
421 return sb_finish(&sb);
422}
423
424char *json_stringify(const JsonNode *node, const char *space)
425{

Callers

nothing calls this directly

Calls 3

sb_initFunction · 0.85
emit_stringFunction · 0.85
sb_finishFunction · 0.85

Tested by

no test coverage detected