diff options
author | nyamatongwe <unknown> | 2003-11-01 11:40:37 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2003-11-01 11:40:37 +0000 |
commit | 1cb0c37b721cfa4909a260a48aa82999f61cacc0 (patch) | |
tree | d176377cdf80118ee4a7fc9363f14492317c5fb3 /src/Document.h | |
parent | 40780f412ede5e9a0aee4378d22909172ad3ace3 (diff) | |
download | scintilla-mirror-1cb0c37b721cfa4909a260a48aa82999f61cacc0.tar.gz |
Patch from Roy Wood to allow changing the characters that are in the
whitespace class.
Diffstat (limited to 'src/Document.h')
-rw-r--r-- | src/Document.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/Document.h b/src/Document.h index f811bf077..dc9e38e21 100644 --- a/src/Document.h +++ b/src/Document.h @@ -87,11 +87,12 @@ public: userData = 0; } }; + + enum charClassification { ccSpace, ccNewLine, ccWord, ccPunctuation }; private: int refCount; CellBuffer cb; - enum charClassification { ccSpace, ccNewLine, ccWord, ccPunctuation }; charClassification charClass[256]; char stylingMask; int endStyled; @@ -199,8 +200,9 @@ public: int LinesTotal(); void ChangeCase(Range r, bool makeUpperCase); - - void SetWordChars(unsigned char *chars); + + void SetDefaultCharClasses(); + void SetCharClasses(unsigned char *chars, charClassification newCharClass); void SetStylingBits(int bits); void StartStyling(int position, char mask); bool SetStyleFor(int length, char style); |