aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Editor.cxx
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2019-03-29 09:05:14 +1100
committerNeil <nyamatongwe@gmail.com>2019-03-29 09:05:14 +1100
commit6d1bf18357b56cbec7d289c9c9434a7a8888b386 (patch)
treee03227ff253d79d62c42b331c2b66d32b81dc9c0 /src/Editor.cxx
parent62b31d42a2ee02b4992134d325fab6f297729094 (diff)
downloadscintilla-mirror-6d1bf18357b56cbec7d289c9c9434a7a8888b386.tar.gz
Feature [feature-requests:#1259]. Add SCI_SETCHARACTERCATEGORYOPTIMIZATION API
to optimize speed of character category features.
Diffstat (limited to 'src/Editor.cxx')
-rw-r--r--src/Editor.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index 72660dd1b..4bae9b44f 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -6253,6 +6253,13 @@ sptr_t Editor::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam) {
pdoc->SetDefaultCharClasses(true);
break;
+ case SCI_SETCHARACTERCATEGORYOPTIMIZATION:
+ pdoc->SetCharacterCategoryOptimization(static_cast<int>(wParam));
+ break;
+
+ case SCI_GETCHARACTERCATEGORYOPTIMIZATION:
+ return pdoc->CharacterCategoryOptimization();
+
case SCI_GETLENGTH:
return pdoc->Length();