MCPcopy Create free account
hub / github.com/THUDM/AgentTuning / dupMeta

Method dupMeta

AgentBench.old/src/tasks/card_game/logic/src/jsoncpp/jsoncpp.cpp:3516–3530  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3514}
3515
3516void Value::dupMeta(const Value& other) {
3517 if (other.comments_) {
3518 comments_ = new CommentInfo[numberOfCommentPlacement];
3519 for (int comment = 0; comment < numberOfCommentPlacement; ++comment) {
3520 const CommentInfo& otherComment = other.comments_[comment];
3521 if (otherComment.comment_)
3522 comments_[comment].setComment(
3523 otherComment.comment_, strlen(otherComment.comment_));
3524 }
3525 } else {
3526 comments_ = 0;
3527 }
3528 start_ = other.start_;
3529 limit_ = other.limit_;
3530}
3531
3532// Access an object value by name, create a null member if it does not exist.
3533// @pre Type of '*this' is object or null.

Callers

nothing calls this directly

Calls 1

setCommentMethod · 0.45

Tested by

no test coverage detected