| 319 | } |
| 320 | |
| 321 | bool |
| 322 | Reader::parse(const std::string& document, Value& root, bool collectComments) { |
| 323 | JSONCPP_STRING documentCopy(document.data(), document.data() + document.capacity()); |
| 324 | std::swap(documentCopy, document_); |
| 325 | const char* begin = document_.c_str(); |
| 326 | const char* end = begin + document_.length(); |
| 327 | return parse(begin, end, root, collectComments); |
| 328 | } |
| 329 | |
| 330 | bool Reader::parse(std::istream& sin, Value& root, bool collectComments) { |
| 331 | // std::istream_iterator<char> begin(sin); |
no test coverage detected