MCPcopy Create free account
hub / github.com/PlayFab/gsdk / setComment

Method setComment

cpp/cppsdk/jsoncpp.cpp:2681–2692  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2679}
2680
2681void Value::CommentInfo::setComment(const char* text, size_t len) {
2682 if (comment_) {
2683 releaseStringValue(comment_, 0u);
2684 comment_ = 0;
2685 }
2686 JSON_ASSERT(text != 0);
2687 JSON_ASSERT_MESSAGE(
2688 text[0] == '\0' || text[0] == '/',
2689 "in Json::Value::setComment(): Comments must start with /");
2690 // It seems that /**/ style comments are acceptable as well.
2691 comment_ = duplicateStringValue(text, len);
2692}
2693
2694// //////////////////////////////////////////////////////////////////
2695// //////////////////////////////////////////////////////////////////

Callers 4

parseMethod · 0.80
readValueMethod · 0.80
addCommentMethod · 0.80
dupMetaMethod · 0.80

Calls 3

releaseStringValueFunction · 0.85
duplicateStringValueFunction · 0.85
lengthMethod · 0.80

Tested by

no test coverage detected