| 2138 | CharReaderBuilder::~CharReaderBuilder() |
| 2139 | {} |
| 2140 | CharReader* CharReaderBuilder::newCharReader() const |
| 2141 | { |
| 2142 | bool collectComments = settings_["collectComments"].asBool(); |
| 2143 | OurFeatures features = OurFeatures::all(); |
| 2144 | features.allowComments_ = settings_["allowComments"].asBool(); |
| 2145 | features.strictRoot_ = settings_["strictRoot"].asBool(); |
| 2146 | features.allowDroppedNullPlaceholders_ = settings_["allowDroppedNullPlaceholders"].asBool(); |
| 2147 | features.allowNumericKeys_ = settings_["allowNumericKeys"].asBool(); |
| 2148 | features.allowSingleQuotes_ = settings_["allowSingleQuotes"].asBool(); |
| 2149 | features.stackLimit_ = settings_["stackLimit"].asInt(); |
| 2150 | features.failIfExtra_ = settings_["failIfExtra"].asBool(); |
| 2151 | features.rejectDupKeys_ = settings_["rejectDupKeys"].asBool(); |
| 2152 | features.allowSpecialFloats_ = settings_["allowSpecialFloats"].asBool(); |
| 2153 | return new OurCharReader(collectComments, features); |
| 2154 | } |
| 2155 | static void getValidReaderKeys(std::set<JSONCPP_STRING>* valid_keys) |
| 2156 | { |
| 2157 | valid_keys->clear(); |
no test coverage detected