From 1a05a259558efd7dffb118ca9b12257a1346d2ea Mon Sep 17 00:00:00 2001
From: Neil Last edited 5/May/2013 NH Last edited 29/June/2013 NH There is an overview of the internal design of
Scintilla. SCI_GETLINESELSTARTPOSITION(int line)Scintilla Documentation
-
@@ -1344,7 +1344,7 @@ struct Sci_TextToFind {
SCI_GETLINESELENDPOSITION(int line)
Retrieve the position of the start and end of the selection at the given line with
- INVALID_POSITION returned if no selection on this line.INVALID_POSITION returned if no selection on this line.
SCI_MOVECARETINSIDEVIEW
If the caret is off the top or bottom of the view, it is moved to the nearest line that is
@@ -6322,17 +6322,22 @@ 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.
The GetRelativePosition method allows navigating the document by whole characters and provides a standard
+
GetRelativePosition navigates the document by whole characters,
+returning INVALID_POSITION for movement beyond the start and end of the document.
GetCharacterAndWidth 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
+Bytes in invalid UTF-8 are reported individually with values 0xDC80+byteValue, which are
not valid Unicode code points.
+The pWidth argument can be NULL if the caller does not need to know the number of
+bytes in the character.