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

Method newCharReader

src/jsoncpp.cpp:2123–2137  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

parseFromStreamFunction · 0.80

Calls 2

asBoolMethod · 0.80
asIntMethod · 0.80

Tested by

no test coverage detected