Home
last modified time | relevance | path

Searched refs:leftover_ (Results 1 – 3 of 3) sorted by relevance

/external/protobuf/src/google/protobuf/util/internal/
Djson_stream_parser.cc100 leftover_(), in JsonStreamParser()
124 if (!leftover_.empty()) { in Parse()
127 chunk_storage_.swap(leftover_); in Parse()
139 chunk.substr(n).AppendToString(&leftover_); in Parse()
142 chunk.CopyToString(&leftover_); in Parse()
150 if (stack_.empty() && leftover_.empty()) { in FinishParse()
157 utf8.reset(new char[leftover_.size()]); in FinishParse()
158 char* coerced = internal::UTF8CoerceToStructurallyValid(leftover_, utf8.get(), ' '); in FinishParse()
159 p_ = json_ = StringPiece(coerced, leftover_.size()); in FinishParse()
161 p_ = json_ = leftover_; in FinishParse()
[all …]
Djson_stream_parser.h212 string leftover_; variable
/external/protobuf/src/google/protobuf/compiler/objectivec/
Dobjectivec_helpers.cc860 string leftover_; member in google::protobuf::compiler::objectivec::__anonf0e543780211::Parser
864 if (!leftover_.empty()) { in ParseChunk()
865 chunk.AppendToString(&leftover_); in ParseChunk()
866 p_ = StringPiece(leftover_); in ParseChunk()
872 leftover_.clear(); in ParseChunk()
874 leftover_ = p_.ToString(); in ParseChunk()
880 if (leftover_.empty()) { in Finish()
884 p_ = StringPiece(leftover_ + "\n"); in Finish()