| 282 | } |
| 283 | |
| 284 | bool |
| 285 | Reader::parse(const std::string& document, Value& root, bool collectComments) { |
| 286 | document_ = document; |
| 287 | const char* begin = document_.c_str(); |
| 288 | const char* end = begin + document_.length(); |
| 289 | return parse(begin, end, root, collectComments); |
| 290 | } |
| 291 | |
| 292 | bool Reader::parse(std::istream& sin, Value& root, bool collectComments) { |
| 293 | // std::istream_iterator<char> begin(sin); |