aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <unknown>2002-05-20 07:34:04 +0000
committernyamatongwe <unknown>2002-05-20 07:34:04 +0000
commit01629f9e76ae6614b54631f3dbabad7301ddda27 (patch)
treea425cf35f23c06b1da47c35c1a6295414da3c3f5
parent4350f4050139d22968333cf922b1289667cab37a (diff)
downloadscintilla-mirror-01629f9e76ae6614b54631f3dbabad7301ddda27.tar.gz
Added a Match method to Accessor to make it easy to check for strings in a document. Moved IsASpaceOrTab into StyleContext header.
-rw-r--r--include/Accessor.h1
-rw-r--r--include/WindowAccessor.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/include/Accessor.h b/include/Accessor.h
index 17c951067..0b2c4baee 100644
--- a/include/Accessor.h
+++ b/include/Accessor.h
@@ -55,6 +55,7 @@ public:
}
void SetCodePage(int codePage_) { codePage = codePage_; }
+ virtual bool Match(int pos, const char *s)=0;
virtual char StyleAt(int position)=0;
virtual int GetLine(int position)=0;
virtual int LineStart(int line)=0;
diff --git a/include/WindowAccessor.h b/include/WindowAccessor.h
index 7fd8e30fd..6c16b150f 100644
--- a/include/WindowAccessor.h
+++ b/include/WindowAccessor.h
@@ -31,6 +31,7 @@ public:
lenDoc(-1), validLen(0), chFlags(0), chWhile(0) {
}
~WindowAccessor();
+ bool Match(int pos, const char *s);
char StyleAt(int position);
int GetLine(int position);
int LineStart(int line);