| 251 | } |
| 252 | |
| 253 | bool |
| 254 | Reader::parse(const std::string& document, Value& root, bool collectComments) { |
| 255 | document_ = document; |
| 256 | const char* begin = document_.c_str(); |
| 257 | const char* end = begin + document_.length(); |
| 258 | return parse(begin, end, root, collectComments); |
| 259 | } |
| 260 | |
| 261 | bool Reader::parse(std::istream& sin, Value& root, bool collectComments) { |
| 262 | // std::istream_iterator<char> begin(sin); |