MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / newCharReader

Method newCharReader

json/jsoncpp.cpp:2163–2177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 8

GetValueMethod · 0.80
ReadGlobalMethod · 0.80
AnalysisContextMethod · 0.80
RequestUserPositionsMethod · 0.80
RequestChatLogMethod · 0.80
GetJsonMethod · 0.80
InspireWriteCallbackFunction · 0.80
parseFromStreamFunction · 0.80

Calls 2

asBoolMethod · 0.80
asIntMethod · 0.80

Tested by

no test coverage detected