| 1744 | CharReaderBuilder::~CharReaderBuilder() |
| 1745 | {} |
| 1746 | CharReader* CharReaderBuilder::newCharReader() const |
| 1747 | { |
| 1748 | bool collectComments = settings_["collectComments"].asBool(); |
| 1749 | OurFeatures features = OurFeatures::all(); |
| 1750 | features.allowComments_ = settings_["allowComments"].asBool(); |
| 1751 | features.strictRoot_ = settings_["strictRoot"].asBool(); |
| 1752 | features.allowDroppedNullPlaceholders_ = settings_["allowDroppedNullPlaceholders"].asBool(); |
| 1753 | features.allowNumericKeys_ = settings_["allowNumericKeys"].asBool(); |
| 1754 | features.allowSingleQuotes_ = settings_["allowSingleQuotes"].asBool(); |
| 1755 | features.stackLimit_ = settings_["stackLimit"].asInt(); |
| 1756 | features.failIfExtra_ = settings_["failIfExtra"].asBool(); |
| 1757 | features.rejectDupKeys_ = settings_["rejectDupKeys"].asBool(); |
| 1758 | features.allowSpecialFloats_ = settings_["allowSpecialFloats"].asBool(); |
| 1759 | return new OurCharReader(collectComments, features); |
| 1760 | } |
| 1761 | static void getValidReaderKeys(std::set<std::string>* valid_keys) |
| 1762 | { |
| 1763 | valid_keys->clear(); |
no test coverage detected