diff options
| author | nyamatongwe <devnull@localhost> | 2010-08-19 13:16:10 +1000 |
|---|---|---|
| committer | nyamatongwe <devnull@localhost> | 2010-08-19 13:16:10 +1000 |
| commit | e4fe4cbba4bb351c4c2165659eb50734488fcc7a (patch) | |
| tree | 94a6313dd4d7ca1fcd0286e59bd70e2029905129 | |
| parent | 9b2502bd7230644985cc4fef07555add8b340f20 (diff) | |
| download | scintilla-mirror-e4fe4cbba4bb351c4c2165659eb50734488fcc7a.tar.gz | |
Exposed BufferPointer through IDocument.
| -rw-r--r-- | include/ILexer.h | 1 | ||||
| -rw-r--r-- | src/Document.h | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/include/ILexer.h b/include/ILexer.h index 60f2bdf10..ebd1a8843 100644 --- a/include/ILexer.h +++ b/include/ILexer.h @@ -41,6 +41,7 @@ public: virtual void SCI_METHOD ChangeLexerState(int start, int end) = 0; virtual int SCI_METHOD CodePage() const = 0; virtual bool SCI_METHOD IsDBCSLeadByte(char ch) const = 0; + virtual const char * SCI_METHOD BufferPointer() = 0; }; enum { lvOriginal=0 }; diff --git a/src/Document.h b/src/Document.h index 6d2c2d0bb..660ec7854 100644 --- a/src/Document.h +++ b/src/Document.h @@ -254,7 +254,7 @@ public: void AddUndoAction(int token, bool mayCoalesce) { cb.AddUndoAction(token, mayCoalesce); } void SetSavePoint(); bool IsSavePoint() { return cb.IsSavePoint(); } - const char *BufferPointer() { return cb.BufferPointer(); } + const char * SCI_METHOD BufferPointer() { return cb.BufferPointer(); } int GetLineIndentation(int line); void SetLineIndentation(int line, int indent); |
