MCPcopy Create free account
hub / github.com/PointCloudLibrary/pcl / cJSON_PrintStr

Function cJSON_PrintStr

outofcore/src/cJSON.cpp:267–272  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

265char *cJSON_PrintUnformatted(cJSON *item) {return print_value(item,0,0);}
266
267void cJSON_PrintStr(cJSON *item, std::string& s)
268{
269 char* c = cJSON_Print(item);
270 s.assign(c);
271 free(c);
272}
273
274void cJSON_PrintUnformattedStr(cJSON *item, std::string& s)
275{

Callers 1

cJSON.hFile · 0.85

Calls 2

cJSON_PrintFunction · 0.85
assignMethod · 0.45

Tested by

no test coverage detected