From 70acfa623be189df50b42a7402085e782341fec2 Mon Sep 17 00:00:00 2001 From: Neil Date: Tue, 20 Aug 2013 14:57:56 +1000 Subject: Added PositionRelative to optimize navigation by character. --- doc/ScintillaDoc.html | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'doc/ScintillaDoc.html') diff --git a/doc/ScintillaDoc.html b/doc/ScintillaDoc.html index 57550bfe6..cca207dae 100644 --- a/doc/ScintillaDoc.html +++ b/doc/ScintillaDoc.html @@ -1161,6 +1161,7 @@ struct Sci_TextToFind { onlyWordCharacters)
SCI_POSITIONBEFORE(int position)
SCI_POSITIONAFTER(int position)
+ SCI_POSITIONRELATIVE(int position, int relative)
SCI_COUNTCHARACTERS(int startPos, int endPos)
SCI_TEXTWIDTH(int styleNumber, const char *text)
SCI_TEXTHEIGHT(int line)
@@ -1466,6 +1467,11 @@ struct Sci_TextToFind { If called with a position within a multi byte character will return the position of the start/end of that character.

+

SCI_POSITIONRELATIVE(int position, int relative)
+ Count a number of whole characters before or after the argument position and return that position. + The minimum position returned is 0 and the maximum is the last position in the document. +

+

SCI_COUNTCHARACTERS(int startPos, int endPos)
Returns the number of whole characters between two positions..

-- cgit v1.2.3