From 529ea750b146c23bd1f8c0ec0b3bbeb64689a736 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.cxx | 53 ++++++++++++++++++++++++++++++++++++++++++++++------- 1 file changed, 46 insertions(+), 7 deletions(-) (limited to 'src/RESearch.cxx') diff --git a/src/RESearch.cxx b/src/RESearch.cxx index a9b0d264f..fbc116363 100644 --- a/src/RESearch.cxx +++ b/src/RESearch.cxx @@ -29,6 +29,11 @@ * Modification history: * * $Log$ + * Revision 1.2 2001/04/05 01:58:04 nyamatongwe + * Replace target functionality to make find and replace operations faster + * by diminishing screen updates and allow for \d patterns in the replacement + * text. + * * Revision 1.1 2001/04/04 12:52:44 nyamatongwe * Moved to public domain regular expresion implementation. * @@ -231,10 +236,47 @@ const char bitarr[] = {1,2,4,8,16,32,64,'\200'}; #define badpat(x) (*nfa = END, x) RESearch::RESearch() { + Init(); +} + +RESearch::~RESearch() { + Clear(); +} + +void RESearch::Init() { sta = NOP; /* status of lastpat */ bol = 0; - for (int i=0; i