aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/WindowAccessor.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/WindowAccessor.cxx')
-rw-r--r--src/WindowAccessor.cxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/WindowAccessor.cxx b/src/WindowAccessor.cxx
index e02bf90e4..e980b9a77 100644
--- a/src/WindowAccessor.cxx
+++ b/src/WindowAccessor.cxx
@@ -45,6 +45,15 @@ void WindowAccessor::Fill(int position) {
Platform::SendScintilla(id, SCI_GETTEXTRANGE, 0, reinterpret_cast<long>(&tr));
}
+bool WindowAccessor::Match(int pos, const char *s) {
+ for (int i=0; *s; i++) {
+ if (*s != SafeGetCharAt(pos+i))
+ return false;
+ s++;
+ }
+ return true;
+}
+
char WindowAccessor::StyleAt(int position) {
return static_cast<char>(Platform::SendScintilla(
id, SCI_GETSTYLEAT, position, 0));