C++ compilation support for RE /s operator

This commit is contained in:
Vern Paxson 2022-09-16 16:44:00 -07:00
parent 5c6801131f
commit 7b8d92b4f6
3 changed files with 5 additions and 0 deletions

View file

@ -47,6 +47,8 @@ void CPP_IndexedInits<T>::Generate(InitsManager* im, std::vector<PatternValPtr>&
auto re = new RE_Matcher(im->Strings(init_vals[0]));
if ( init_vals[1] )
re->MakeCaseInsensitive();
if ( init_vals[2] )
re->MakeSingleLine();
re->Compile();