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

@ -168,6 +168,7 @@ PatternConstInfo::PatternConstInfo(CPPCompile* c, ValPtr v) : CPP_InitInfo()
auto re = v->AsPatternVal()->Get();
pattern = c->TrackString(CPPEscape(re->OrigText()));
is_case_insensitive = re->IsCaseInsensitive();
is_single_line = re->IsSingleLine();
}
CompoundItemInfo::CompoundItemInfo(CPPCompile* _c, ValPtr v) : CPP_InitInfo(), c(_c)