| 340 | } |
| 341 | |
| 342 | bool Reader::parse(const std::string& document, |
| 343 | Value& root, |
| 344 | bool collectComments) { |
| 345 | document_.assign(document.begin(), document.end()); |
| 346 | const char* begin = document_.c_str(); |
| 347 | const char* end = begin + document_.length(); |
| 348 | return parse(begin, end, root, collectComments); |
| 349 | } |
| 350 | |
| 351 | bool Reader::parse(std::istream& sin, Value& root, bool collectComments) { |
| 352 | // std::istream_iterator<char> begin(sin); |
no test coverage detected