Initial import (untested!)

This commit is contained in:
David Anderson
2004-10-05 07:17:49 +00:00
parent 9e8f380121
commit 41b6f6bd4a
11 changed files with 6590 additions and 0 deletions

26
dlls/regex/CRegEx.h Executable file
View File

@ -0,0 +1,26 @@
#ifndef _INCLUDE_CREGEX_H
#define _INCLUDE_CREGEX_H
class RegEx
{
public:
RegEx();
~RegEx();
bool isFree(bool set=false, bool val=false);
void Clear();
int Compile(const char *pattern);
int Match(const char *str);
const char *GetSubstring(int s, char buffer[], int max);
public:
int mErrorOffset;
const char *mError;
int mSubStrings;
private:
pcre *re;
bool mFree;
int ovector[30];
char *subject;
};
#endif //_INCLUDE_CREGEX_H