From 1bd2d31b3ce8714ddeba3d9825a8a605e55751cf Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sun, 29 Apr 2001 13:32:10 +0000 Subject: Addition of new target methods - versions of ReplaceTarget that take counted strings to allow for nulls, SearchInTarget and Get/SetSearchFlags to use a series of calls rather than a structure. Handling of \000 in search and replace. Handling of /escapes within character ranges of regular expressions. Some handling of bare ^ and $ regular expressions. --- src/RESearch.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/RESearch.h') diff --git a/src/RESearch.h b/src/RESearch.h index 14a5471fd..28238bfb7 100644 --- a/src/RESearch.h +++ b/src/RESearch.h @@ -32,8 +32,8 @@ public: bool GrabMatches(CharacterIndexer &ci); void ChSet(char c); void ChSetWithCase(char c, bool caseSensitive); - const char *Compile(const char *pat, bool caseSensitive); - int Execute(CharacterIndexer &ci, int lp); + const char *Compile(const char *pat, int length, bool caseSensitive); + int Execute(CharacterIndexer &ci, int lp, int endp); void ModifyWord(char *s); int Substitute(CharacterIndexer &ci, char *src, char *dst); @@ -46,7 +46,7 @@ public: char *pat[MAXTAG]; private: - int PMatch(CharacterIndexer &ci, int lp, char *ap); + int PMatch(CharacterIndexer &ci, int lp, int endp, char *ap); int bol; int tagstk[MAXTAG]; /* subpat tag stack..*/ -- cgit v1.2.3