| 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 |
nothing calls this directly
no outgoing calls
no test coverage detected