mirror of
https://github.com/zeek/zeek.git
synced 2025-10-13 12:08:20 +00:00
implemented /re/i for case-insensitive patterns
This commit is contained in:
parent
bd5414d8d5
commit
80b3b82b54
8 changed files with 117 additions and 27 deletions
5
src/RE.h
5
src/RE.h
|
@ -54,6 +54,8 @@ public:
|
|||
|
||||
void AddPat(const char* pat);
|
||||
|
||||
void MakeCaseInsensitive();
|
||||
|
||||
void SetPat(const char* pat) { pattern_text = copy_string(pat); }
|
||||
|
||||
int Compile(int lazy = 0);
|
||||
|
@ -178,6 +180,9 @@ public:
|
|||
|
||||
void AddPat(const char* pat);
|
||||
|
||||
// Makes the matcher as specified to date case-insensitive.
|
||||
void MakeCaseInsensitive();
|
||||
|
||||
int Compile(int lazy = 0);
|
||||
|
||||
// Returns true if s exactly matches the pattern, false otherwise.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue