mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
sundry accessors/cast-ers; RE_Matcher's track their construction values
This commit is contained in:
parent
17affdb858
commit
d53d2ac755
8 changed files with 50 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue