From e702dacda85f0976d1006d9634dc38b53fad1336 Mon Sep 17 00:00:00 2001 From: Zufu Liu Date: Thu, 2 Nov 2023 08:51:15 +1100 Subject: Feature [feature-requests:#1500] Remove match text retrieval from MatchOnLines as it is redone in SubstituteByPosition. Replace RESearch::pat and RESearch::GrabMatches with retrieving matches as needed in SubstituteByPosition. --- src/RESearch.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/RESearch.h') diff --git a/src/RESearch.h b/src/RESearch.h index c142441ae..37f210e13 100644 --- a/src/RESearch.h +++ b/src/RESearch.h @@ -22,7 +22,6 @@ public: explicit RESearch(CharClassify *charClassTable); // No dynamic allocation so default copy constructor and assignment operator are OK. void Clear(); - void GrabMatches(const CharacterIndexer &ci); const char *Compile(const char *pattern, Sci::Position length, bool caseSensitive, bool posix) noexcept; int Execute(const CharacterIndexer &ci, Sci::Position lp, Sci::Position endp); @@ -32,7 +31,6 @@ public: using MatchPositions = std::array; MatchPositions bopat; MatchPositions eopat; - std::string pat[MAXTAG]; private: -- cgit v1.2.3