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.
---
doc/ScintillaDoc.html | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
(limited to 'doc/ScintillaDoc.html')
diff --git a/doc/ScintillaDoc.html b/doc/ScintillaDoc.html
index 281bbf957..abec92a5b 100644
--- a/doc/ScintillaDoc.html
+++ b/doc/ScintillaDoc.html
@@ -6321,13 +6321,18 @@ exception options.
To allow lexers to determine the end position of a line and thus more easily support Unicode line ends
-IDocument is extended to IDocumentWithLineEnd.
+IDocument is extended to IDocumentWithLineEnd.
+The GetRelativePosition method allows navigating the document by whole characters and provides a standard
+conversion from UTF-8 bytes to a UTF-32 character or from DBCS to a 16 bit value.
+Invalid UTF-8 is reported as a character for each byte with values 0xDC80+byteValue, which are
+not valid Unicode code points.
class IDocumentWithLineEnd : public IDocument {
public:
virtual int SCI_METHOD LineEnd(int line) const = 0;
+ virtual int SCI_METHOD GetRelativePosition(int start, int characterOffset, int *character, int *width) const = 0;
};
--
cgit v1.2.3