2f41af814e
--HG-- branch : sourcemod-1.1.0 extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/branches/sourcemod-1.1.0%401848
29 lines
477 B
C++
29 lines
477 B
C++
#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 iFlags);
|
|
int Match(const char *str);
|
|
void ClearMatch();
|
|
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
|
|
|