| 2121 | CharReaderBuilder::~CharReaderBuilder() |
| 2122 | {} |
| 2123 | CharReader* CharReaderBuilder::newCharReader() const |
| 2124 | { |
| 2125 | bool collectComments = settings_["collectComments"].asBool(); |
| 2126 | OurFeatures features = OurFeatures::all(); |
| 2127 | features.allowComments_ = settings_["allowComments"].asBool(); |
| 2128 | features.strictRoot_ = settings_["strictRoot"].asBool(); |
| 2129 | features.allowDroppedNullPlaceholders_ = settings_["allowDroppedNullPlaceholders"].asBool(); |
| 2130 | features.allowNumericKeys_ = settings_["allowNumericKeys"].asBool(); |
| 2131 | features.allowSingleQuotes_ = settings_["allowSingleQuotes"].asBool(); |
| 2132 | features.stackLimit_ = settings_["stackLimit"].asInt(); |
| 2133 | features.failIfExtra_ = settings_["failIfExtra"].asBool(); |
| 2134 | features.rejectDupKeys_ = settings_["rejectDupKeys"].asBool(); |
| 2135 | features.allowSpecialFloats_ = settings_["allowSpecialFloats"].asBool(); |
| 2136 | return new OurCharReader(collectComments, features); |
| 2137 | } |
| 2138 | static void getValidReaderKeys(std::set<std::string>* valid_keys) |
| 2139 | { |
| 2140 | valid_keys->clear(); |
no test coverage detected