| 1880 | OurCharReader(bool collectComments, OurFeatures const& features) |
| 1881 | : collectComments_(collectComments), reader_(features) {} |
| 1882 | bool parse(char const* beginDoc, char const* endDoc, Value* root, |
| 1883 | String* errs) override { |
| 1884 | bool ok = reader_.parse(beginDoc, endDoc, *root, collectComments_); |
| 1885 | if (errs) { |
| 1886 | *errs = reader_.getFormattedErrorMessages(); |
| 1887 | } |
| 1888 | return ok; |
| 1889 | } |
| 1890 | }; |
| 1891 | |
| 1892 | CharReaderBuilder::CharReaderBuilder() { setDefaults(&settings_); } |
nothing calls this directly
no test coverage detected