MCPcopy Create free account
hub / github.com/bblanchon/ArduinoJson / findKey

Method findKey

src/ArduinoJson/Object/ObjectImpl.hpp:33–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31
32template <typename TAdaptedString>
33inline ObjectData::iterator ObjectData::findKey(
34 TAdaptedString key, const ResourceManager* resources) const {
35 if (key.isNull())
36 return iterator();
37 bool isKey = true;
38 for (auto it = createIterator(resources); !it.done(); it.next(resources)) {
39 if (isKey && stringEquals(key, adaptString(it->asString())))
40 return it;
41 isKey = !isKey;
42 }
43 return iterator();
44}
45
46template <typename TAdaptedString>
47inline void ObjectData::removeMember(TAdaptedString key,

Callers

nothing calls this directly

Calls 7

adaptStringFunction · 0.85
doneMethod · 0.80
asStringMethod · 0.80
iteratorClass · 0.50
stringEqualsFunction · 0.50
isNullMethod · 0.45
nextMethod · 0.45

Tested by

no test coverage detected