MCPcopy Create free account
hub / github.com/codereader/DarkRadiant / getVcsPatternMatch

Function getVcsPatternMatch

libs/VersionControlLib.h:19–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17 constexpr const char* const UriFormat = "{0}://{1}/{2}";
18
19 inline std::string getVcsPatternMatch(const std::string& uri, std::size_t index)
20 {
21 std::smatch results;
22 return std::regex_match(uri, results, std::regex(UriPattern)) ? results[index].str() : std::string();
23 }
24
25}
26

Callers 3

getVcsPrefixFunction · 0.85
getVcsRevisionFunction · 0.85
getVcsFilePathFunction · 0.85

Calls 1

strMethod · 0.45

Tested by

no test coverage detected