summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpixel <pixel>2004-12-18 12:58:10 +0000
committerpixel <pixel>2004-12-18 12:58:10 +0000
commitdbe6767b757d891bb6b4b21edee4b987735dce0c (patch)
treec36a8fa0f5bd8ca499e1b16308682e35b7549f68
parentf5b39b3e6da6ddf8e5eef4fa1d6e7548856f37eb (diff)
Renaming conflicting "case unsensitive" filename.
-rw-r--r--include/BRegex.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/include/BRegex.h b/include/BRegex.h
new file mode 100644
index 0000000..b076342
--- /dev/null
+++ b/include/BRegex.h
@@ -0,0 +1,22 @@
+#ifndef __REGEX_H__
+#define __REGEX_H__
+
+#include <Exceptions.h>
+#include <BString.h>
+#include <regex.h>
+
+class Regex : public Base {
+ public:
+ Regex(const String &, int = REG_EXTENDED, int = 0) throw (GeneralException);
+ Regex(const Regex &);
+ ~Regex();
+ bool Match(const String &) const;
+ private:
+ regex_t preg;
+ int cflags, eflags;
+ char * pattern;
+};
+
+extern Regex empty, any;
+
+#endif