Merge remote-tracking branch 'lenormf/regex-format-string' into HEAD

This commit is contained in:
Maxime Coste 2018-04-28 09:29:57 +10:00
commit a1b8864c77

View File

@ -1138,7 +1138,7 @@ struct TestVM : CompiledRegex, ThreadedRegexVM<const char*, dir>
: CompiledRegex{compile_regex(re, dir == MatchDirection::Forward ?
RegexCompileFlags::None : RegexCompileFlags::Backward)},
VMType{(const CompiledRegex&)*this}
{ if (dump) printf(dump_regex(*this).c_str()); }
{ if (dump) puts(dump_regex(*this).c_str()); }
bool exec(StringView re, RegexExecFlags flags = RegexExecFlags::AnyMatch)
{