| 65 | } |
| 66 | |
| 67 | std::string JsonLoader::Value::str() { |
| 68 | if (Type::STRING == m_type) { |
| 69 | auto t = safe_cast<StringValue>(); |
| 70 | return t->value(); |
| 71 | } |
| 72 | return std::string(); |
| 73 | } |
| 74 | |
| 75 | void JsonLoader::expect(char c) { |
| 76 | mgb_assert(c == (*m_buf)); |
no test coverage detected