MCPcopy Create free account
hub / github.com/Tencent/rapidjson / String

Method String

example/messagereader/messagereader.cpp:39–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37 }
38
39 bool String(const char* str, SizeType length, bool) {
40 switch (state_) {
41 case kExpectNameOrObjectEnd:
42 name_ = string(str, length);
43 state_ = kExpectValue;
44 return true;
45 case kExpectValue:
46 messages_.insert(MessageMap::value_type(name_, string(str, length)));
47 state_ = kExpectNameOrObjectEnd;
48 return true;
49 default:
50 return false;
51 }
52 }
53
54 bool EndObject(SizeType) { return state_ == kExpectNameOrObjectEnd; }
55

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected