diff options
| author | nyamatongwe <unknown> | 2006-02-25 02:43:03 +0000 |
|---|---|---|
| committer | nyamatongwe <unknown> | 2006-02-25 02:43:03 +0000 |
| commit | f6994eeda16b695b2abcb9654e704749b28a85b1 (patch) | |
| tree | 2bdb32179d450bb6b0356d501eccb7bb978c5098 /src/RESearch.h | |
| parent | 08a99417d3d6239c5b3ee701dae9d51dfa023097 (diff) | |
| download | scintilla-mirror-f6994eeda16b695b2abcb9654e704749b28a85b1.tar.gz | |
Patch from Greg Smith with further modifications moved character
classification from Document into a separate CharClassify class and file
and uses this from RESearch for regular expression word end \< and \>
instead of built-in table.
Diffstat (limited to 'src/RESearch.h')
| -rw-r--r-- | src/RESearch.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/RESearch.h b/src/RESearch.h index a558b371d..25205951f 100644 --- a/src/RESearch.h +++ b/src/RESearch.h @@ -18,7 +18,7 @@ #define BITBLK MAXCHR/CHRBIT class CharacterIndexer { -public: +public: virtual char CharAt(int index)=0; virtual ~CharacterIndexer() { } @@ -27,7 +27,7 @@ public: class RESearch { public: - RESearch(); + RESearch(CharClassify *charClassTable); ~RESearch(); void Init(); void Clear(); @@ -36,7 +36,6 @@ public: void ChSetWithCase(char c, bool caseSensitive); const char *Compile(const char *pat, int length, bool caseSensitive, bool posix); int Execute(CharacterIndexer &ci, int lp, int endp); - void ModifyWord(char *s); int Substitute(CharacterIndexer &ci, char *src, char *dst); enum {MAXTAG=10}; @@ -57,6 +56,10 @@ private: char bittab[BITBLK]; /* bit table for CCL */ /* pre-set bits... */ int failure; + CharClassify *charClass; + bool iswordc(unsigned char x) { + return charClass->IsWord(x); + } }; #endif |
