From 508b1b5ca03dffc1ec2d5a98a378da4cdd30ef84 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Thu, 5 Apr 2001 01:58:04 +0000 Subject: Replace target functionality to make find and replace operations faster by diminishing screen updates and allow for \d patterns in the replacement text. --- src/RESearch.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/RESearch.h') diff --git a/src/RESearch.h b/src/RESearch.h index f9cf7fdc5..62a78f48e 100644 --- a/src/RESearch.h +++ b/src/RESearch.h @@ -26,6 +26,10 @@ class RESearch { public: RESearch(); + ~RESearch(); + void Init(); + void Clear(); + bool GrabMatches(CharacterIndexer &ci); void ChSet(char c); const char *Compile(char *pat); int Execute(CharacterIndexer &ci, int lp); @@ -33,11 +37,12 @@ public: int Substitute(CharacterIndexer &ci, char *src, char *dst); enum {MAXTAG=10}; - enum {MAXNFA=1024}; + enum {MAXNFA=2048}; enum {NOTFOUND=-1}; int bopat[MAXTAG]; int eopat[MAXTAG]; + char *pat[MAXTAG]; private: int PMatch(CharacterIndexer &ci, int lp, char *ap); -- cgit v1.2.3