From 818cf866da84841e0f46c8f7b717b18926032f25 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sat, 25 Feb 2006 02:43:03 +0000 Subject: 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. --- src/Document.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/Document.h') 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); -- cgit v1.2.3