From 35639b0cec5c5e293355c8660a7f36dfb71b5651 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Thu, 27 Jun 2013 17:22:43 +1000 Subject: Bug: [#1483]. Adding StyleContext::GetRelativeCharacter for character-oriented access. Implemented using new method IDocumentWithLineEnd::GetRelativePosition. --- src/Document.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/Document.h') diff --git a/src/Document.h b/src/Document.h index f3b49e1fe..8eb8db74a 100644 --- a/src/Document.h +++ b/src/Document.h @@ -279,6 +279,7 @@ public: int MovePositionOutsideChar(int pos, int moveDir, bool checkLineEnd=true); int NextPosition(int pos, int moveDir) const; bool NextCharacter(int &pos, int moveDir) const; // Returns true if pos changed + int SCI_METHOD GetRelativePosition(int start, int characterOffset, int *character, int *width) const; int SCI_METHOD CodePage() const; bool SCI_METHOD IsDBCSLeadByte(char ch) const; int SafeSegment(const char *text, int length, int lengthSegment) const; -- cgit v1.2.3