MCPcopy Create free account
hub / github.com/NativeScript/android / GetChild

Method GetChild

test-app/runtime/src/main/cpp/MetadataTreeNode.cpp:11–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9}
10
11MetadataTreeNode* MetadataTreeNode::GetChild(const string& name) {
12 MetadataTreeNode* child = nullptr;
13
14 if (children != nullptr) {
15 auto itEnd = children->end();
16 auto itFound = find_if(children->begin(), itEnd, [&name] (MetadataTreeNode *x) {
17 return x->name == name;
18 });
19 if (itFound != itEnd) {
20 child = *itFound;
21 }
22 }
23
24 return child;
25}
26

Callers 2

WriteMethod · 0.80

Calls 2

endMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected