diff options
author | nyamatongwe <unknown> | 2011-11-16 10:43:52 +1100 |
---|---|---|
committer | nyamatongwe <unknown> | 2011-11-16 10:43:52 +1100 |
commit | 706467b15ad45ab2653733eff7e3afdf3486b251 (patch) | |
tree | 24d4c42b2a7f475a04965623cea030c73c4d88e2 /include | |
parent | ad331d1977908f0b034c4bd9ab6d039a32ff0f50 (diff) | |
download | scintilla-mirror-706467b15ad45ab2653733eff7e3afdf3486b251.tar.gz |
Bug #3283519. CountCharacters added to count the number of
characters between two positions. From Andrey Moskalyov.
Diffstat (limited to 'include')
-rw-r--r-- | include/Scintilla.h | 1 | ||||
-rw-r--r-- | include/Scintilla.iface | 4 |
2 files changed, 4 insertions, 1 deletions
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(,) |