aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/CellBuffer.cxx
diff options
context:
space:
mode:
authornyamatongwe <unknown>2012-05-26 15:15:07 +1000
committernyamatongwe <unknown>2012-05-26 15:15:07 +1000
commit00c771cecda620db28cec9e4c50830f542e3a829 (patch)
treeb14ac398aa30f650cf9c38fd43407d13e32384e8 /src/CellBuffer.cxx
parent0af9eecdbfe8e8260ef67316e7208e1385715c73 (diff)
downloadscintilla-mirror-00c771cecda620db28cec9e4c50830f542e3a829.tar.gz
Add GetRangePointer and GetGapPosition methods.
Diffstat (limited to 'src/CellBuffer.cxx')
-rw-r--r--src/CellBuffer.cxx8
1 files changed, 8 insertions, 0 deletions
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;