diff options
author | nyamatongwe <devnull@localhost> | 2012-05-26 15:15:07 +1000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2012-05-26 15:15:07 +1000 |
commit | 1596a6d6b4540980cd6a8249460d881d6d190c1f (patch) | |
tree | 498aeab1fe1cf973892c069753d8d06ea5420785 /src/CellBuffer.cxx | |
parent | 25e91c5a5870ea1138684dbd2d67888bccce5876 (diff) | |
download | scintilla-mirror-1596a6d6b4540980cd6a8249460d881d6d190c1f.tar.gz |
Add GetRangePointer and GetGapPosition methods.
Diffstat (limited to 'src/CellBuffer.cxx')
-rw-r--r-- | src/CellBuffer.cxx | 8 |
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; |