| 165 | } |
| 166 | |
| 167 | bool UniValue::findKey(const std::string& key, size_t& retIdx) const |
| 168 | { |
| 169 | for (size_t i = 0; i < keys.size(); i++) { |
| 170 | if (keys[i] == key) { |
| 171 | retIdx = i; |
| 172 | return true; |
| 173 | } |
| 174 | } |
| 175 | |
| 176 | return false; |
| 177 | } |
| 178 | |
| 179 | bool UniValue::checkObject(const std::map<std::string,UniValue::VType>& t) const |
| 180 | { |