aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/CellBuffer.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/CellBuffer.h')
-rw-r--r--src/CellBuffer.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/CellBuffer.h b/src/CellBuffer.h
index e790a8196..c51eab78d 100644
--- a/src/CellBuffer.h
+++ b/src/CellBuffer.h
@@ -67,11 +67,11 @@ public:
void InsertLine(int line, int position);
void SetLineStart(int line, int position);
void RemoveLine(int line);
- int Lines() {
+ int Lines() const {
return starts.Partitions();
}
int LineFromPosition(int pos);
- int LineStart(int line) {
+ int LineStart(int line) const {
return starts.PositionFromPartition(line);
}
@@ -168,14 +168,14 @@ public:
~CellBuffer();
/// Retrieving positions outside the range of the buffer works and returns 0
- char CharAt(int position);
+ char CharAt(int position) const;
void GetCharRange(char *buffer, int position, int lengthRetrieve);
char StyleAt(int position);
- int Length();
+ int Length() const;
void Allocate(int newSize);
- int Lines();
- int LineStart(int line);
+ int Lines() const;
+ int LineStart(int line) const;
int LineFromPosition(int pos) { return lv.LineFromPosition(pos); }
const char *InsertString(int position, const char *s, int insertLength, bool &startSequence);