Move everything in util.h to zeek::util namespace.

This commit includes renaming a number of methods prefixed with bro_ to be prefixed with zeek_.
This commit is contained in:
Tim Wojtulewicz 2020-08-06 10:40:24 -07:00
parent 8862b585fa
commit 8d2d867a65
179 changed files with 1277 additions and 1033 deletions

View file

@ -487,7 +487,7 @@ function subst_string%(s: string, from: string, to: string%): string
while ( big_len >= little_len )
{
int j = strstr_n(big_len, big, little_len, from->Bytes());
int j = zeek::util::strstr_n(big_len, big, little_len, from->Bytes());
if ( j < 0 )
break;
@ -688,7 +688,7 @@ function str_smith_waterman%(s1: string, s2: string, params: sw_params%) : sw_su
auto* subseq = zeek::detail::smith_waterman(s1->AsString(), s2->AsString(), sw_params);
auto result = zeek::VectorValPtr{zeek::AdoptRef{}, zeek::detail::Substring::VecToPolicy(subseq)};
delete_each(subseq);
zeek::util::delete_each(subseq);
delete subseq;
return result;