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

Method parseMultipleRules

module/src/main/cpp/MountRuleParser.cpp:209–220  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

207 }
208
209 static std::vector<MountRule> parseMultipleRules(const std::vector<std::string>& ruleTexts) {
210 std::vector<MountRule> rules;
211 for (const auto& text : ruleTexts) {
212 MountRule rule = parseRuleString(text);
213 if (rule) {
214 rules.push_back(rule);
215 } else {
216 LOGE("[MountRuleParser::parseMultipleRules]: Failed to parse rule: `%s`", text.c_str());
217 }
218 }
219 return rules;
220 }
221
222private:
223 static bool validateSyntax(const std::string& text) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected