diff options
author | nyamatongwe <devnull@localhost> | 2013-05-24 00:04:54 +1000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2013-05-24 00:04:54 +1000 |
commit | 44da106995e3b3ca4068f584c16f59d8fced4e69 (patch) | |
tree | 72512a72ac08ef47a2f40d9b30b0f208a245fda0 /lexlib/LexAccessor.h | |
parent | 2345e207b44f01e09d8dba69a37b9a67eeefa884 (diff) | |
download | scintilla-mirror-44da106995e3b3ca4068f584c16f59d8fced4e69.tar.gz |
Made methods const where they can be and are logically const as well.
Diffstat (limited to 'lexlib/LexAccessor.h')
-rw-r--r-- | lexlib/LexAccessor.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lexlib/LexAccessor.h b/lexlib/LexAccessor.h index 59ae11346..4223f302d 100644 --- a/lexlib/LexAccessor.h +++ b/lexlib/LexAccessor.h @@ -90,7 +90,7 @@ public: } return buf[position - startPos]; } - bool IsLeadByte(char ch) { + bool IsLeadByte(char ch) const { return pAccess->IsDBCSLeadByte(ch); } EncodingType Encoding() const { @@ -104,13 +104,13 @@ public: } return true; } - char StyleAt(int position) { + char StyleAt(int position) const { return static_cast<char>(pAccess->StyleAt(position) & mask); } - int GetLine(int position) { + int GetLine(int position) const { return pAccess->LineFromPosition(position); } - int LineStart(int line) { + int LineStart(int line) const { return pAccess->LineStart(line); } int LineEnd(int line) { @@ -126,7 +126,7 @@ public: return startNext - 1; } } - int LevelAt(int line) { + int LevelAt(int line) const { return pAccess->GetLevel(line); } int Length() const { @@ -140,7 +140,7 @@ public: validLen = 0; } } - int GetLineState(int line) { + int GetLineState(int line) const { return pAccess->GetLineState(line); } int SetLineState(int line, int state) { |