MCPcopy Create free account
hub / github.com/Kitware/CMake / toStyledString

Method toStyledString

Utilities/cmjsoncpp/src/lib_json/json_value.cpp:1438–1446  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1436ptrdiff_t Value::getOffsetLimit() const { return limit_; }
1437
1438String Value::toStyledString() const {
1439 StreamWriterBuilder builder;
1440
1441 String out = this->hasComment(commentBefore) ? "\n" : "";
1442 out += Json::writeString(builder, *this);
1443 out += '\n';
1444
1445 return out;
1446}
1447
1448Value::const_iterator Value::begin() const {
1449 switch (type()) {

Callers

nothing calls this directly

Calls 2

hasCommentMethod · 0.95
writeStringFunction · 0.85

Tested by

no test coverage detected