diff options
Diffstat (limited to 'src/Document.h')
-rw-r--r-- | src/Document.h | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/Document.h b/src/Document.h index 82931207c..d5059f7bc 100644 --- a/src/Document.h +++ b/src/Document.h @@ -26,10 +26,10 @@ public: Position start; Position end; - Range(Position pos=0) : + Range(Position pos=0) : start(pos), end(pos) { }; - Range(Position start_, Position end_) : + Range(Position start_, Position end_) : start(start_), end(end_) { }; @@ -60,7 +60,7 @@ public: } bool Overlaps(Range other) const { - return + return Contains(other.start) || Contains(other.end) || other.Contains(start) || @@ -88,7 +88,7 @@ public: } }; -private: +private: int refCount; CellBuffer cb; enum charClassification { ccSpace, ccNewLine, ccWord, ccPunctuation }; @@ -191,7 +191,7 @@ public: int ExtendWordSelect(int pos, int delta, bool onlyWordCharacters=false); int NextWordStart(int pos, int delta); int Length() { return cb.Length(); } - long FindText(int minPos, int maxPos, const char *s, + long FindText(int minPos, int maxPos, const char *s, bool caseSensitive, bool word, bool wordStart, bool regExp, int *length); long FindText(int iMessage, unsigned long wParam, long lParam); const char *SubstituteByPosition(const char *text, int *length); @@ -222,7 +222,6 @@ public: int WordPartRight(int pos); private: - bool IsDBCS(int pos); charClassification WordCharClass(unsigned char ch); bool IsWordStartAt(int pos); bool IsWordEndAt(int pos); @@ -252,7 +251,7 @@ public: int foldLevelNow; int foldLevelPrev; - DocModification(int modificationType_, int position_=0, int length_=0, + DocModification(int modificationType_, int position_=0, int length_=0, int linesAdded_=0, const char *text_=0) : modificationType(modificationType_), position(position_), |