aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Document.h
diff options
context:
space:
mode:
authornyamatongwe <unknown>2010-09-16 10:31:20 +1000
committernyamatongwe <unknown>2010-09-16 10:31:20 +1000
commit58053e3f7114cf1295973b160d6b7e6ebcb2dfae (patch)
tree4523cf59cbfc601dc3dc481313c3e36b3707dee6 /src/Document.h
parent44759e200fbab494d6b7ce25a15dde3db05bc1bc (diff)
downloadscintilla-mirror-58053e3f7114cf1295973b160d6b7e6ebcb2dfae.tar.gz
Making methods const when they should be.
Diffstat (limited to 'src/Document.h')
-rw-r--r--src/Document.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Document.h b/src/Document.h
index c7ff8e069..d58c5efe5 100644
--- a/src/Document.h
+++ b/src/Document.h
@@ -228,9 +228,9 @@ public:
int ClampPositionIntoDocument(int pos);
bool IsCrLf(int pos);
int LenChar(int pos);
- bool InGoodUTF8(int pos, int &start, int &end);
+ bool InGoodUTF8(int pos, int &start, int &end) const;
int MovePositionOutsideChar(int pos, int moveDir, bool checkLineEnd=true);
- int NextPosition(int pos, int moveDir);
+ int NextPosition(int pos, int moveDir) const;
bool NextCharacter(int &pos, int moveDir); // Returns true if pos changed
int SCI_METHOD CodePage() const;
bool SCI_METHOD IsDBCSLeadByte(char ch) const;