diff options
author | nyamatongwe <unknown> | 2010-08-19 13:16:10 +1000 |
---|---|---|
committer | nyamatongwe <unknown> | 2010-08-19 13:16:10 +1000 |
commit | 6dd145a6e94e36f2e11b2eea0610ed1996112124 (patch) | |
tree | 50a9f0f4b785a23f43a67e838eb65ce56e2b6ffc | |
parent | 3dfcb85a1e2def2c14cb0073b16ebc246bd75188 (diff) | |
download | scintilla-mirror-6dd145a6e94e36f2e11b2eea0610ed1996112124.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); |