From 01629f9e76ae6614b54631f3dbabad7301ddda27 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Mon, 20 May 2002 07:34:04 +0000 Subject: Added a Match method to Accessor to make it easy to check for strings in a document. Moved IsASpaceOrTab into StyleContext header. --- include/Accessor.h | 1 + include/WindowAccessor.h | 1 + 2 files changed, 2 insertions(+) (limited to 'include') 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); -- cgit v1.2.3