aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2011-11-16 10:43:52 +1100
committernyamatongwe <devnull@localhost>2011-11-16 10:43:52 +1100
commit445cc61d3c5dead15aeca9c363ccbbe57018d744 (patch)
tree47688bbd73047e85901aec3b576383b621c6ecc8 /include
parent1def08bb984e864f4d34064bdb38db2e47e7bd86 (diff)
downloadscintilla-mirror-445cc61d3c5dead15aeca9c363ccbbe57018d744.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.h1
-rw-r--r--include/Scintilla.iface4
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(,)