| 317 | } |
| 318 | |
| 319 | bool Reader::parse(const std::string &document, Value &root, |
| 320 | bool collectComments) { |
| 321 | document_.assign(document.begin(), document.end()); |
| 322 | const char *begin = document_.c_str(); |
| 323 | const char *end = begin + document_.length(); |
| 324 | return parse(begin, end, root, collectComments); |
| 325 | } |
| 326 | |
| 327 | bool Reader::parse(std::istream &is, Value &root, bool collectComments) { |
| 328 | // std::istream_iterator<char> begin(is); |