aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/RESearch.h
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2017-10-16 12:36:56 +1100
committerNeil <nyamatongwe@gmail.com>2017-10-16 12:36:56 +1100
commit2770554d11acab2ae8969fe266f43c766303c27e (patch)
tree9162560752fb692d7b547d6f2a950f0cc22fa41e /src/RESearch.h
parentfb2b3ef2c35f917984f33932c480d9ec9c197194 (diff)
downloadscintilla-mirror-2770554d11acab2ae8969fe266f43c766303c27e.tar.gz
Backport: Use const for interface CharacterIndexer and its implementation DocumentIndexer.
Backport of changeset 6401:fccfa635ff0c.
Diffstat (limited to 'src/RESearch.h')
-rw-r--r--src/RESearch.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/RESearch.h b/src/RESearch.h
index 83a20c5b5..285c9dc62 100644
--- a/src/RESearch.h
+++ b/src/RESearch.h
@@ -21,7 +21,7 @@ namespace Scintilla {
class CharacterIndexer {
public:
- virtual char CharAt(Sci::Position index)=0;
+ virtual char CharAt(Sci::Position index) const=0;
virtual ~CharacterIndexer() {
}
};
@@ -33,9 +33,9 @@ public:
// No dynamic allocation so default copy constructor and assignment operator are OK.
~RESearch();
void Clear();
- void GrabMatches(CharacterIndexer &ci);
+ void GrabMatches(const CharacterIndexer &ci);
const char *Compile(const char *pattern, Sci::Position length, bool caseSensitive, bool posix);
- int Execute(CharacterIndexer &ci, Sci::Position lp, Sci::Position endp);
+ int Execute(const CharacterIndexer &ci, Sci::Position lp, Sci::Position endp);
enum { MAXTAG=10 };
enum { MAXNFA=4096 };
@@ -50,7 +50,7 @@ private:
void ChSetWithCase(unsigned char c, bool caseSensitive);
int GetBackslashExpression(const char *pattern, int &incr);
- Sci::Position PMatch(CharacterIndexer &ci, Sci::Position lp, Sci::Position endp, char *ap);
+ Sci::Position PMatch(const CharacterIndexer &ci, Sci::Position lp, Sci::Position endp, char *ap);
Sci::Position bol;
Sci::Position tagstk[MAXTAG]; /* subpat tag stack */