aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Document.h
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2003-01-13 10:25:28 +0000
committernyamatongwe <devnull@localhost>2003-01-13 10:25:28 +0000
commit1d47b64abfffba1bfeb30826d10b6034108306fb (patch)
tree87a7d825cd0c2bb78b8d6c65daa72d4b2b407585 /src/Document.h
parent8b71956cc93116ade7795bee066c9b4d3c3e224c (diff)
downloadscintilla-mirror-1d47b64abfffba1bfeb30826d10b6034108306fb.tar.gz
Simplified and corrected code.
IsDBCS no longer present as now must deal with 3 byte DBCS so use LenChar and DBCSCharLength.
Diffstat (limited to 'src/Document.h')
-rw-r--r--src/Document.h13
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_),