diff options
Diffstat (limited to 'src/RESearch.h')
-rw-r--r-- | src/RESearch.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/RESearch.h b/src/RESearch.h index 23795babe..f61b3008b 100644 --- a/src/RESearch.h +++ b/src/RESearch.h @@ -23,7 +23,7 @@ namespace Scintilla { class CharacterIndexer { public: - virtual char CharAt(int index)=0; + virtual char CharAt(Sci::Position index)=0; virtual ~CharacterIndexer() { } }; @@ -35,15 +35,15 @@ public: ~RESearch(); void Clear(); void GrabMatches(CharacterIndexer &ci); - const char *Compile(const char *pattern, int length, bool caseSensitive, bool posix); - int Execute(CharacterIndexer &ci, int lp, int endp); + const char *Compile(const char *pattern, Sci::Position length, bool caseSensitive, bool posix); + int Execute(CharacterIndexer &ci, Sci::Position lp, Sci::Position endp); enum { MAXTAG=10 }; enum { MAXNFA=4096 }; enum { NOTFOUND=-1 }; - int bopat[MAXTAG]; - int eopat[MAXTAG]; + Sci::Position bopat[MAXTAG]; + Sci::Position eopat[MAXTAG]; std::string pat[MAXTAG]; private: @@ -51,10 +51,10 @@ private: void ChSetWithCase(unsigned char c, bool caseSensitive); int GetBackslashExpression(const char *pattern, int &incr); - int PMatch(CharacterIndexer &ci, int lp, int endp, char *ap); + Sci::Position PMatch(CharacterIndexer &ci, Sci::Position lp, Sci::Position endp, char *ap); - int bol; - int tagstk[MAXTAG]; /* subpat tag stack */ + Sci::Position bol; + Sci::Position tagstk[MAXTAG]; /* subpat tag stack */ char nfa[MAXNFA]; /* automaton */ int sta; unsigned char bittab[BITBLK]; /* bit table for CCL pre-set bits */ |