From 6dd145a6e94e36f2e11b2eea0610ed1996112124 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Thu, 19 Aug 2010 13:16:10 +1000 Subject: Exposed BufferPointer through IDocument. --- include/ILexer.h | 1 + src/Document.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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); -- cgit v1.2.3