diff options
author | Neil <nyamatongwe@gmail.com> | 2017-10-16 12:36:56 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2017-10-16 12:36:56 +1100 |
commit | d9d71bd8d6872dcc7f7601f55e1bf8f14c61436f (patch) | |
tree | 55c3aefda19093eb5738fe687b607469cecbc2f1 /src/RESearch.cxx | |
parent | 4b87bf80cada418a5cf193447c31f4d736bde492 (diff) | |
download | scintilla-mirror-d9d71bd8d6872dcc7f7601f55e1bf8f14c61436f.tar.gz |
Use const for interface CharacterIndexer and its implementation DocumentIndexer.
Diffstat (limited to 'src/RESearch.cxx')
-rw-r--r-- | src/RESearch.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/RESearch.cxx b/src/RESearch.cxx index 0603b5870..31ee9aaac 100644 --- a/src/RESearch.cxx +++ b/src/RESearch.cxx @@ -272,7 +272,7 @@ void RESearch::Clear() { } } -void RESearch::GrabMatches(CharacterIndexer &ci) { +void RESearch::GrabMatches(const CharacterIndexer &ci) { for (unsigned int i = 0; i < MAXTAG; i++) { if ((bopat[i] != NOTFOUND) && (eopat[i] != NOTFOUND)) { Sci::Position len = eopat[i] - bopat[i]; @@ -753,7 +753,7 @@ const char *RESearch::Compile(const char *pattern, Sci::Position length, bool ca * respectively. * */ -int RESearch::Execute(CharacterIndexer &ci, Sci::Position lp, Sci::Position endp) { +int RESearch::Execute(const CharacterIndexer &ci, Sci::Position lp, Sci::Position endp) { unsigned char c; Sci::Position ep = NOTFOUND; char *ap = nfa; @@ -845,7 +845,7 @@ static inline int isinset(const char *ap, unsigned char c) { #define CHRSKIP 3 /* [CLO] CHR chr END */ #define CCLSKIP 34 /* [CLO] CCL 32 bytes END */ -Sci::Position RESearch::PMatch(CharacterIndexer &ci, Sci::Position lp, Sci::Position endp, char *ap) { +Sci::Position RESearch::PMatch(const CharacterIndexer &ci, Sci::Position lp, Sci::Position endp, char *ap) { int op, c, n; Sci::Position e; /* extra pointer for CLO */ Sci::Position bp; /* beginning of subpat... */ |