implemented /re/i for case-insensitive patterns

This commit is contained in:
Vern Paxson 2018-06-26 15:59:41 -07:00
parent bd5414d8d5
commit 80b3b82b54
8 changed files with 117 additions and 27 deletions

View file

@ -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.