MCPcopy Create free account
hub / github.com/Illumina/paragraph / newCharReader

Method newCharReader

external/jsoncpp/jsoncpp.cpp:2165–2179  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2163CharReaderBuilder::~CharReaderBuilder()
2164{}
2165CharReader* CharReaderBuilder::newCharReader() const
2166{
2167 bool collectComments = settings_["collectComments"].asBool();
2168 OurFeatures features = OurFeatures::all();
2169 features.allowComments_ = settings_["allowComments"].asBool();
2170 features.strictRoot_ = settings_["strictRoot"].asBool();
2171 features.allowDroppedNullPlaceholders_ = settings_["allowDroppedNullPlaceholders"].asBool();
2172 features.allowNumericKeys_ = settings_["allowNumericKeys"].asBool();
2173 features.allowSingleQuotes_ = settings_["allowSingleQuotes"].asBool();
2174 features.stackLimit_ = settings_["stackLimit"].asInt();
2175 features.failIfExtra_ = settings_["failIfExtra"].asBool();
2176 features.rejectDupKeys_ = settings_["rejectDupKeys"].asBool();
2177 features.allowSpecialFloats_ = settings_["allowSpecialFloats"].asBool();
2178 return new OurCharReader(collectComments, features);
2179}
2180static void getValidReaderKeys(std::set<JSONCPP_STRING>* valid_keys)
2181{
2182 valid_keys->clear();

Callers 1

parseFromStreamFunction · 0.80

Calls 2

asBoolMethod · 0.80
asIntMethod · 0.80

Tested by

no test coverage detected