MCPcopy Create free account
hub / github.com/appdevforall/CodeOnTheGo / rule_name

Function rule_name

subprojects/llama.cpp/common/peg-parser.cpp:940–943  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

938}
939
940static std::string rule_name(const std::string & name) {
941 static const std::regex invalid_rule_chars_re("[^a-zA-Z0-9-]+");
942 return std::regex_replace(name, invalid_rule_chars_re, "-");
943}
944
945common_peg_parser_builder::common_peg_parser_builder() {}
946

Callers 1

ruleMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected