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/Document.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/Document.h')
-rw-r--r-- | src/Document.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Document.h b/src/Document.h index 6ff858b92..d774d5664 100644 --- a/src/Document.h +++ b/src/Document.h @@ -93,7 +93,7 @@ public: private: int refCount; CellBuffer cb; - charClassification charClass[256]; + CharClassify charClass; char stylingMask; int endStyled; int styleClock; @@ -207,7 +207,7 @@ public: void ChangeCase(Range r, bool makeUpperCase); void SetDefaultCharClasses(bool includeWordClass); - void SetCharClasses(const unsigned char *chars, charClassification newCharClass); + void SetCharClasses(const unsigned char *chars, CharClassify::cc newCharClass); void SetStylingBits(int bits); void StartStyling(int position, char mask); bool SetStyleFor(int length, char style); @@ -239,7 +239,7 @@ public: private: void CheckReadOnly(); - charClassification WordCharClass(unsigned char ch); + CharClassify::cc WordCharClass(unsigned char ch); bool IsWordStartAt(int pos); bool IsWordEndAt(int pos); bool IsWordAt(int start, int end); |