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