| 252 | |
| 253 | template<typename T> |
| 254 | static 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 | |
| 261 | std::shared_ptr<Regex> Regex::create(std::string pattern, Engine engine, std::string& err) |
| 262 | { |