| 342 | Reader::Reader(const Features &features) : features_(features) {} |
| 343 | |
| 344 | bool Reader::parse(const std::string &document, Value &root, bool collectComments) |
| 345 | { |
| 346 | document_.assign(document.begin(), document.end()); |
| 347 | const char *begin = document_.c_str(); |
| 348 | const char *end = begin + document_.length(); |
| 349 | return parse(begin, end, root, collectComments); |
| 350 | } |
| 351 | |
| 352 | bool Reader::parse(std::istream &is, Value &root, bool collectComments) |
| 353 | { |