aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authormitchell <unknown>2019-04-16 22:50:17 -0400
committermitchell <unknown>2019-04-16 22:50:17 -0400
commit86266d4700632860705fc2d4e88d4be4f5228be1 (patch)
treef330e0f843dcef19d0c69506fa1df4637ccd820e /include
parent4c22cdbe64a4024053c202521b69524c655a2c5d (diff)
downloadscintilla-mirror-86266d4700632860705fc2d4e88d4be4f5228be1.tar.gz
Backport: Feature [feature-requests:#1259]. Add SCI_SETCHARACTERCATEGORYOPTIMIZATION API to optimize speed of character category features.
Backport of changeset 7392:2832adedd0f4, but with added includes for Sci::clamp().
Diffstat (limited to 'include')
-rw-r--r--include/Scintilla.h2
-rw-r--r--include/Scintilla.iface6
2 files changed, 8 insertions, 0 deletions
diff --git a/include/Scintilla.h b/include/Scintilla.h
index cb3259842..31115ad0c 100644
--- a/include/Scintilla.h
+++ b/include/Scintilla.h
@@ -266,6 +266,8 @@ typedef sptr_t (*SciFnDirect)(sptr_t ptr, unsigned int iMessage, uptr_t wParam,
#define SCI_SETCARETPERIOD 2076
#define SCI_SETWORDCHARS 2077
#define SCI_GETWORDCHARS 2646
+#define SCI_SETCHARACTERCATEGORYOPTIMIZATION 2720
+#define SCI_GETCHARACTERCATEGORYOPTIMIZATION 2721
#define SCI_BEGINUNDOACTION 2078
#define SCI_ENDUNDOACTION 2079
#define INDIC_PLAIN 0
diff --git a/include/Scintilla.iface b/include/Scintilla.iface
index a26f7057d..a3820445a 100644
--- a/include/Scintilla.iface
+++ b/include/Scintilla.iface
@@ -610,6 +610,12 @@ set void SetWordChars=2077(, string characters)
# Returns the number of characters
get int GetWordChars=2646(, stringresult characters)
+# Set the number of characters to have directly indexed categories
+set void SetCharacterCategoryOptimization=2720(int countCharacters,)
+
+# Get the number of characters to have directly indexed categories
+get int GetCharacterCategoryOptimization=2721(,)
+
# Start a sequence of actions that is undone and redone as a unit.
# May be nested.
fun void BeginUndoAction=2078(,)