MCPcopy Create free account
hub / github.com/ValveSoftware/Proton / newCharReader

Method newCharReader

vrclient_x64/jsoncpp.cpp:2122–2136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

parseFromStreamFunction · 0.80

Calls 2

asBoolMethod · 0.80
asIntMethod · 0.80

Tested by

no test coverage detected