regexp.h
来自「CodezBank is just a small application th」· C头文件 代码 · 共 44 行
H
44 行
#ifndef __REGEXP_H__
#define __REGEXP_H__
class regexp;
class Regexp
{
public:
enum { NSUBEXP = 10 };
Regexp();
Regexp( LPCTSTR exp, BOOL iCase = 0 );
Regexp( const Regexp &r );
~Regexp();
const Regexp & operator=( const Regexp & r );
bool Match( const TCHAR * s );
int SubStrings() const;
const CString operator[]( unsigned int i ) const;
int SubStart( unsigned int i ) const;
int SubLength( unsigned int i ) const;
CString GetReplaceString( LPCTSTR source ) const;
CString GetErrorString() const;
bool CompiledOK() const;
#if defined( _RE_DEBUG )
void Dump();
#endif
private:
const TCHAR * string; /* used to return substring offsets only */
mutable CString m_szError;
regexp * rc;
void ClearErrorString() const;
int safeIndex( unsigned int i ) const;
};
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?