MCPcopy Create free account
hub / github.com/danoon2/Boxedwine / getChildByNameIgnoreCase

Method getChildByNameIgnoreCase

source/io/fsnode.cpp:108–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106}
107
108std::shared_ptr<FsNode> FsNode::getChildByNameIgnoreCase(BString name) {
109 this->loadChildren();
110 BOXEDWINE_CRITICAL_SECTION_WITH_MUTEX(this->childrenByNameMutex);
111 for (auto& n : this->childrenByName) {
112 if (n.key.compareTo(name, true) == 0) {
113 return n.value;
114 }
115 }
116 return nullptr;
117}
118
119U32 FsNode::getChildCount() {
120 this->loadChildren();

Callers 2

applyMethod · 0.80
openFileDescriptorMethod · 0.80

Calls 2

loadChildrenMethod · 0.95
compareToMethod · 0.80

Tested by

no test coverage detected