MCPcopy Create free account
hub / github.com/bytedance/sonic-cpp / findMemberImpl

Method findMemberImpl

include/sonic/dom/dynamicnode.h:621–632  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

619 }
620
621 sonic_force_inline MemberIterator findMemberImpl(StringView key) const {
622 if (nullptr != getMap()) {
623 return findFromMap(key);
624 }
625 auto it = this->MemberBegin();
626 for (auto e = this->MemberEnd(); it != e; ++it) {
627 if (it->name.GetStringView() == key) {
628 break;
629 }
630 }
631 return const_cast<MemberIterator>(it);
632 }
633
634 sonic_force_inline MemberIterator findMemberImpl(const char* key,
635 size_t len) const {

Callers 2

Calls 1

InlinedMemcmpEqFunction · 0.50

Tested by

no test coverage detected