MCPcopy Create free account
hub / github.com/cinder/Cinder / setComment

Method setComment

src/jsoncpp/jsoncpp.cpp:1632–1641  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1630}
1631
1632void Value::CommentInfo::setComment(const char* text) {
1633 if (comment_)
1634 releaseStringValue(comment_);
1635 JSON_ASSERT(text != 0);
1636 JSON_ASSERT_MESSAGE(
1637 text[0] == '\0' || text[0] == '/',
1638 "in Json::Value::setComment(): Comments must start with /");
1639 // It seems that /**/ style comments are acceptable as well.
1640 comment_ = duplicateStringValue(text);
1641}
1642
1643// //////////////////////////////////////////////////////////////////
1644// //////////////////////////////////////////////////////////////////

Callers 4

parseMethod · 0.80
readValueMethod · 0.80
addCommentMethod · 0.80
ValueMethod · 0.80

Calls 3

releaseStringValueFunction · 0.85
duplicateStringValueFunction · 0.85
c_strMethod · 0.45

Tested by

no test coverage detected