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

Function get

src/ArduinoJson/Memory/StringPool.hpp:73–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71
72 template <typename TAdaptedString>
73 StringNode* get(const TAdaptedString& str) const {
74 for (auto node = strings_; node; node = node->next) {
75 if (stringEquals(str, adaptString(node->data, node->length)))
76 return node;
77 }
78 return nullptr;
79 }
80
81 void dereference(const char* s, Allocator* allocator) {
82 StringNode* prev = nullptr;

Callers 4

addFunction · 0.85
ConfigMethod · 0.85
catch.hppFile · 0.85
parseTestSpecFunction · 0.85

Calls 2

adaptStringFunction · 0.85
stringEqualsFunction · 0.50

Tested by 2

ConfigMethod · 0.68
parseTestSpecFunction · 0.68