| 90 | Reader::Reader(const Features& features) : features_(features) {} |
| 91 | |
| 92 | bool Reader::parse(const std::string& document, Value& root, |
| 93 | bool collectComments) { |
| 94 | document_.assign(document.begin(), document.end()); |
| 95 | const char* begin = document_.c_str(); |
| 96 | const char* end = begin + document_.length(); |
| 97 | return parse(begin, end, root, collectComments); |
| 98 | } |
| 99 | |
| 100 | bool Reader::parse(std::istream& is, Value& root, bool collectComments) { |
| 101 | // std::istream_iterator<char> begin(is); |