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

Method addComment

cpp/cppsdk/jsoncpp.cpp:625–636  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

623}
624
625void Reader::addComment(Location begin,
626 Location end,
627 CommentPlacement placement) {
628 assert(collectComments_);
629 const JSONCPP_STRING& normalized = normalizeEOL(begin, end);
630 if (placement == commentAfterOnSameLine) {
631 assert(lastValue_ != 0);
632 lastValue_->setComment(normalized, placement);
633 } else {
634 commentsBefore_ += normalized;
635 }
636}
637
638bool Reader::readCStyleComment() {
639 while ((current_ + 1) < end_) {

Callers

nothing calls this directly

Calls 1

setCommentMethod · 0.80

Tested by

no test coverage detected