| 96 | } |
| 97 | |
| 98 | bool Reader::parse(const std::string& document, |
| 99 | Value& root, |
| 100 | bool collectComments) { |
| 101 | document_.assign(document.begin(), document.end()); |
| 102 | const char* begin = document_.c_str(); |
| 103 | const char* end = begin + document_.length(); |
| 104 | return parse(begin, end, root, collectComments); |
| 105 | } |
| 106 | |
| 107 | bool Reader::parse(std::istream& is, Value& root, bool collectComments) { |
| 108 | // std::istream_iterator<char> begin(is); |