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.h | |
| parent | 4b87bf80cada418a5cf193447c31f4d736bde492 (diff) | |
| download | scintilla-mirror-d9d71bd8d6872dcc7f7601f55e1bf8f14c61436f.tar.gz | |
Use const for interface CharacterIndexer and its implementation DocumentIndexer.
Diffstat (limited to 'src/RESearch.h')
| -rw-r--r-- | src/RESearch.h | 8 | 
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 */  | 
