Move regex matching code to zeek namespaces

This commit is contained in:
Tim Wojtulewicz 2020-07-17 15:21:00 -07:00
parent 382812298d
commit c7dc7fc955
26 changed files with 266 additions and 172 deletions

View file

@ -200,7 +200,7 @@ static int match_prefix(int s_len, const char* s, int t_len, const char* t)
}
static zeek::VectorValPtr do_split_string(zeek::StringVal* str_val,
RE_Matcher* re, int incl_sep,
zeek::RE_Matcher* re, int incl_sep,
int max_num_sep)
{
// string_vec is used early in the version script - do not use the NetVar.
@ -257,7 +257,7 @@ static zeek::VectorValPtr do_split_string(zeek::StringVal* str_val,
return rval;
}
zeek::Val* do_split(zeek::StringVal* str_val, RE_Matcher* re, int incl_sep, int max_num_sep)
zeek::Val* do_split(zeek::StringVal* str_val, zeek::RE_Matcher* re, int incl_sep, int max_num_sep)
{
auto* a = new zeek::TableVal(zeek::id::string_array);
const u_char* s = str_val->Bytes();