blob: b07634265dcc5bdc062d35d89a67c7671f7b78ab (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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
|