MCPcopy Create free account
hub / github.com/MhmRdd/NoHello / matchList

Method matchList

module/src/main/cpp/MountRuleParser.cpp:114–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

112 }
113
114 static bool matchList(const std::vector<std::string>& patterns, const std::string& value) {
115 if (patterns.empty()) return true;
116 return std::any_of(patterns.begin(), patterns.end(),
117 [&](const std::string& p) { return match_with_wildcard(value, p); });
118 }
119
120 static bool matchSourceList(const std::vector<std::string>& patterns, const std::string& value) {
121 if (patterns.empty()) return true;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected