Lines Matching refs:commentsBefore_
81 lastValue_(), commentsBefore_(), features_(Features::all()), in Reader()
86 lastValue_(), commentsBefore_(), features_(features), collectComments_() { in Reader()
124 commentsBefore_ = ""; in parse()
133 if (collectComments_ && !commentsBefore_.empty()) in parse()
134 root.setComment(commentsBefore_, commentAfter); in parse()
156 if (collectComments_ && !commentsBefore_.empty()) { in readValue()
158 size_t lastNonNewline = commentsBefore_.find_last_not_of("\r\n"); in readValue()
160 commentsBefore_.erase(lastNonNewline + 1); in readValue()
162 commentsBefore_.clear(); in readValue()
165 currentValue().setComment(commentsBefore_, commentBefore); in readValue()
166 commentsBefore_ = ""; in readValue()
363 commentsBefore_ += std::string(begin, end); in addComment()