MCPcopy Create free account
hub / github.com/altairwei/WizNotePlus / newCharReader

Method newCharReader

src/share/jsoncpp/jsoncpp.cpp:2140–2154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2138CharReaderBuilder::~CharReaderBuilder()
2139{}
2140CharReader* 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}
2155static void getValidReaderKeys(std::set<JSONCPP_STRING>* valid_keys)
2156{
2157 valid_keys->clear();

Callers 1

parseFromStreamFunction · 0.80

Calls 2

asBoolMethod · 0.80
asIntMethod · 0.80

Tested by

no test coverage detected