From 00c771cecda620db28cec9e4c50830f542e3a829 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sat, 26 May 2012 15:15:07 +1000 Subject: Add GetRangePointer and GetGapPosition methods. --- src/CellBuffer.cxx | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/CellBuffer.cxx') diff --git a/src/CellBuffer.cxx b/src/CellBuffer.cxx index 19f6670f6..11b8b4acd 100644 --- a/src/CellBuffer.cxx +++ b/src/CellBuffer.cxx @@ -375,6 +375,14 @@ const char *CellBuffer::BufferPointer() { return substance.BufferPointer(); } +const char *CellBuffer::RangePointer(int position, int rangeLength) { + return substance.RangePointer(position, rangeLength); +} + +int CellBuffer::GapPosition() const { + return substance.GapPosition(); +} + // The char* returned is to an allocation owned by the undo history const char *CellBuffer::InsertString(int position, const char *s, int insertLength, bool &startSequence) { char *data = 0; -- cgit v1.2.3