MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / createAndCompileRegex

Function createAndCompileRegex

lib/regex.cpp:254–259  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

252
253template<typename T>
254static T* createAndCompileRegex(std::string pattern, std::string& err)
255{
256 T* regex = new T(std::move(pattern));
257 err = regex->compile();
258 return regex;
259}
260
261std::shared_ptr<Regex> Regex::create(std::string pattern, Engine engine, std::string& err)
262{

Callers

nothing calls this directly

Calls 1

compileMethod · 0.80

Tested by

no test coverage detected