MCPcopy Create free account
hub / github.com/LUX-Core/lux / parseJsonStrValueIntoVector

Function parseJsonStrValueIntoVector

src/cpp-ethereum/test/libtesteth/ImportTest.cpp:434–443  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

432}
433
434void parseJsonStrValueIntoVector(json_spirit::mValue const& _json, vector<string>& _out)
435{
436 if (_json.type() == UniValue_type)
437 {
438 for (auto const& val: _json.get_array())
439 _out.push_back(val.get_str());
440 }
441 else
442 _out.push_back(_json.get_str());
443}
444
445void parseJsonIntValueIntoVector(json_spirit::mValue const& _json, vector<int>& _out)
446{

Callers 1

Calls 3

get_strMethod · 0.80
typeMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected