summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPixel <Pixel>2001-11-29 01:03:21 +0000
committerPixel <Pixel>2001-11-29 01:03:21 +0000
commit9788056af63e073607897559997a44272b9a5cef (patch)
tree7618f64e6c6409e4ffbe4d0906d208e25207c24c /include
parent775011d8a082368e3a41808c1c03115b6b78921e (diff)
Regex done!
Diffstat (limited to 'include')
-rw-r--r--include/ReadJob.h3
-rw-r--r--include/Regex.h11
2 files changed, 12 insertions, 2 deletions
diff --git a/include/ReadJob.h b/include/ReadJob.h
index ae0eef7..7d4bfc7 100644
--- a/include/ReadJob.h
+++ b/include/ReadJob.h
@@ -8,13 +8,14 @@
class ReadJob : public Task {
public:
- ReadJob(Handle *, Handle *);
+ ReadJob(Handle *, Handle *, const Regex & = empty);
virtual ~ReadJob();
virtual int Do() throw (GeneralException);
virtual String GetName();
private:
Handle * s, * d;
+ const Regex * regex;
};
#else
diff --git a/include/Regex.h b/include/Regex.h
index 6786041..1fc7197 100644
--- a/include/Regex.h
+++ b/include/Regex.h
@@ -3,13 +3,22 @@
#ifdef __cplusplus
#include <Exceptions.h>
+#include <String.h>
+
+#include <regex.h>
class Regex : public Base {
public:
-
+ Regex(const String &, int = REG_EXTENDED | REG_ICASE, int = 0) throw (GeneralException);
+ ~Regex();
+ bool Match(const String &) const;
private:
+ regex_t preg;
+ int eflags;
};
+extern Regex empty, any;
+
#else
#error This only works with a C++ compiler
#endif