aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/CellBuffer.h
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2013-01-19 11:40:47 +1100
committernyamatongwe <devnull@localhost>2013-01-19 11:40:47 +1100
commitd6ac5bf56d40512ac0634d7a5bee6f7328b7d41f (patch)
treec8a0a61379695115cde7c7423ce4308f4c195336 /src/CellBuffer.h
parent46ff1fe3d148b9d131788be6b4d7da8daa65189c (diff)
downloadscintilla-mirror-d6ac5bf56d40512ac0634d7a5bee6f7328b7d41f.tar.gz
Support the three Unicode line ends NEL, LS, and PS in CellBuffer, Document,
Editor and the message interface. Will only be turned on for lexers that support Unicode line ends.
Diffstat (limited to 'src/CellBuffer.h')
-rw-r--r--src/CellBuffer.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/CellBuffer.h b/src/CellBuffer.h
index 388b9027b..bfbb121de 100644
--- a/src/CellBuffer.h
+++ b/src/CellBuffer.h
@@ -136,12 +136,15 @@ private:
SplitVector<char> substance;
SplitVector<char> style;
bool readOnly;
+ int utf8LineEnds;
bool collectingUndo;
UndoHistory uh;
LineVector lv;
+ bool UTF8LineEndOverlaps(int position) const;
+ void ResetLineEnds();
/// Actions without undo
void BasicInsertString(int position, const char *s, int insertLength);
void BasicDeleteChars(int position, int deleteLength);
@@ -162,6 +165,8 @@ public:
int Length() const;
void Allocate(int newSize);
+ int GetLineEndTypes() const { return utf8LineEnds; }
+ void SetLineEndTypes(int utf8LineEnds_);
void SetPerLine(PerLine *pl);
int Lines() const;
int LineStart(int line) const;