sundry accessors/cast-ers; RE_Matcher's track their construction values

This commit is contained in:
Vern Paxson 2021-03-18 10:33:10 -07:00
parent 17affdb858
commit d53d2ac755
8 changed files with 50 additions and 3 deletions

View file

@ -479,7 +479,7 @@ RE_Matcher::RE_Matcher()
re_exact = new detail::Specific_RE_Matcher(detail::MATCH_EXACTLY);
}
RE_Matcher::RE_Matcher(const char* pat)
RE_Matcher::RE_Matcher(const char* pat) : orig_text(pat)
{
re_anywhere = new detail::Specific_RE_Matcher(detail::MATCH_ANYWHERE);
re_exact = new detail::Specific_RE_Matcher(detail::MATCH_EXACTLY);
@ -511,6 +511,8 @@ void RE_Matcher::MakeCaseInsensitive()
{
re_anywhere->MakeCaseInsensitive();
re_exact->MakeCaseInsensitive();
is_case_insensitive = true;
}
bool RE_Matcher::Compile(bool lazy)