summaryrefslogtreecommitdiff
path: root/include/Regex.h
blob: 1fc7197974a4c71a0d9212a542ebbb6486072cd5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#ifndef __REGEX_H__
#define __REGEX_H__
#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
#endif