diff options
author | Zufu Liu <unknown> | 2023-11-02 08:51:15 +1100 |
---|---|---|
committer | Zufu Liu <unknown> | 2023-11-02 08:51:15 +1100 |
commit | e702dacda85f0976d1006d9634dc38b53fad1336 (patch) | |
tree | 76b1f6005d0a645f702fc2c750f3d7626bea3da0 /src/RESearch.cxx | |
parent | 4c06fe443f2dd9d6235c9cf95d38f7054cfd82b2 (diff) | |
download | scintilla-mirror-e702dacda85f0976d1006d9634dc38b53fad1336.tar.gz |
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.
Diffstat (limited to 'src/RESearch.cxx')
-rw-r--r-- | src/RESearch.cxx | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/RESearch.cxx b/src/RESearch.cxx index 98399c925..8fe3724c8 100644 --- a/src/RESearch.cxx +++ b/src/RESearch.cxx @@ -264,20 +264,6 @@ RESearch::RESearch(CharClassify *charClassTable) { void RESearch::Clear() { bopat.fill(NOTFOUND); eopat.fill(NOTFOUND); - for (int i = 0; i < MAXTAG; i++) { - pat[i].clear(); - } -} - -void RESearch::GrabMatches(const CharacterIndexer &ci) { - for (unsigned int i = 0; i < MAXTAG; i++) { - if ((bopat[i] != NOTFOUND) && (eopat[i] != NOTFOUND)) { - const Sci::Position len = eopat[i] - bopat[i]; - pat[i].resize(len); - for (Sci::Position j = 0; j < len; j++) - pat[i][j] = ci.CharAt(bopat[i] + j); - } - } } void RESearch::ChSet(unsigned char c) noexcept { |