| 102 | } |
| 103 | |
| 104 | bool |
| 105 | Reader::parse(const std::string& document, Value& root, bool collectComments) { |
| 106 | document_.assign(document.begin(), document.end()); |
| 107 | const char* begin = document_.c_str(); |
| 108 | const char* end = begin + document_.length(); |
| 109 | return parse(begin, end, root, collectComments); |
| 110 | } |
| 111 | |
| 112 | bool Reader::parse(std::istream& sin, Value& root, bool collectComments) { |
| 113 | // std::istream_iterator<char> begin(sin); |