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

Method validate

json/jsoncpp.cpp:2191–2207  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2189 valid_keys->insert("allowSpecialFloats");
2190}
2191bool CharReaderBuilder::validate(Json::Value* invalid) const {
2192 Json::Value my_invalid;
2193 if (!invalid)
2194 invalid = &my_invalid; // so we do not need to test for NULL
2195 Json::Value& inv = *invalid;
2196 std::set<JSONCPP_STRING> valid_keys;
2197 getValidReaderKeys(&valid_keys);
2198 Value::Members keys = settings_.getMemberNames();
2199 size_t n = keys.size();
2200 for (size_t i = 0; i < n; ++i) {
2201 JSONCPP_STRING const& key = keys[i];
2202 if (valid_keys.find(key) == valid_keys.end()) {
2203 inv[key] = settings_[key];
2204 }
2205 }
2206 return 0u == inv.size();
2207}
2208Value& CharReaderBuilder::operator[](JSONCPP_STRING key) {
2209 return settings_[key];
2210}

Callers

nothing calls this directly

Calls 6

getValidReaderKeysFunction · 0.85
getValidWriterKeysFunction · 0.85
getMemberNamesMethod · 0.80
findMethod · 0.80
sizeMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected