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

Function regex_escape

subprojects/llama.cpp/common/common.cpp:487–490  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

485}
486
487std::string regex_escape(const std::string & s) {
488 static const std::regex special_chars("[.^$|()*+?\\[\\]{}\\\\]");
489 return std::regex_replace(s, special_chars, "\\$&");
490}
491
492std::string string_join(const std::vector<std::string> & values, const std::string & separator) {
493 std::ostringstream result;

Calls

no outgoing calls

Tested by

no test coverage detected