From 706467b15ad45ab2653733eff7e3afdf3486b251 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Wed, 16 Nov 2011 10:43:52 +1100 Subject: Bug #3283519. CountCharacters added to count the number of characters between two positions. From Andrey Moskalyov. --- include/Scintilla.h | 1 + include/Scintilla.iface | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/Scintilla.h b/include/Scintilla.h index 11f9bbd9e..7a6f58fac 100644 --- a/include/Scintilla.h +++ b/include/Scintilla.h @@ -323,6 +323,7 @@ typedef sptr_t (*SciFnDirect)(sptr_t ptr, unsigned int iMessage, uptr_t wParam, #define SCI_GETLINEINDENTATION 2127 #define SCI_GETLINEINDENTPOSITION 2128 #define SCI_GETCOLUMN 2129 +#define SCI_COUNTCHARACTERS 2633 #define SCI_SETHSCROLLBAR 2130 #define SCI_GETHSCROLLBAR 2131 #define SC_IV_NONE 0 diff --git a/include/Scintilla.iface b/include/Scintilla.iface index 30aa8caea..99c0d69a1 100644 --- a/include/Scintilla.iface +++ b/include/Scintilla.iface @@ -763,9 +763,11 @@ get position GetLineIndentPosition=2128(int line,) # Retrieve the column number of a position, taking tab width into account. get int GetColumn=2129(position pos,) +# Count characters between two positions. +get int CountCharacters=2633(int startPos, int endPos) + # Show or hide the horizontal scroll bar. set void SetHScrollBar=2130(bool show,) - # Is the horizontal scroll bar visible? get bool GetHScrollBar=2131(,) -- cgit v1.2.3