| 1949 | CharReaderBuilder::~CharReaderBuilder() |
| 1950 | {} |
| 1951 | CharReader* CharReaderBuilder::newCharReader() const |
| 1952 | { |
| 1953 | bool collectComments = settings_["collectComments"].asBool(); |
| 1954 | OurFeatures features = OurFeatures::all(); |
| 1955 | features.allowComments_ = settings_["allowComments"].asBool(); |
| 1956 | features.strictRoot_ = settings_["strictRoot"].asBool(); |
| 1957 | features.allowDroppedNullPlaceholders_ = settings_["allowDroppedNullPlaceholders"].asBool(); |
| 1958 | features.allowNumericKeys_ = settings_["allowNumericKeys"].asBool(); |
| 1959 | features.allowSingleQuotes_ = settings_["allowSingleQuotes"].asBool(); |
| 1960 | features.stackLimit_ = settings_["stackLimit"].asInt(); |
| 1961 | features.failIfExtra_ = settings_["failIfExtra"].asBool(); |
| 1962 | features.rejectDupKeys_ = settings_["rejectDupKeys"].asBool(); |
| 1963 | features.allowSpecialFloats_ = settings_["allowSpecialFloats"].asBool(); |
| 1964 | return new OurCharReader(collectComments, features); |
| 1965 | } |
| 1966 | static void getValidReaderKeys(std::set<JSONCPP_STRING>* valid_keys) |
| 1967 | { |
| 1968 | valid_keys->clear(); |
no test coverage detected