This commit is contained in:
Glenn Maynard
2005-12-28 18:09:52 +00:00
parent 400580d842
commit dd04d0d85e
+5 -4
View File
@@ -359,18 +359,19 @@ public:
Regex( const Regex &rhs ); Regex( const Regex &rhs );
Regex &operator=( const Regex &rhs ); Regex &operator=( const Regex &rhs );
~Regex(); ~Regex();
bool IsSet() const { return !pattern.empty(); } bool IsSet() const { return !m_sPattern.empty(); }
void Set( const RString &str ); void Set( const RString &str );
bool Compare( const RString &sStr ); bool Compare( const RString &sStr );
bool Compare( const RString &sStr, vector<RString> &asMatches ); bool Compare( const RString &sStr, vector<RString> &asMatches );
bool Replace( const RString &sReplacement, const RString &sSubject, RString &sOut ); bool Replace( const RString &sReplacement, const RString &sSubject, RString &sOut );
private: private:
void *reg;
unsigned backrefs;
RString pattern;
void Compile(); void Compile();
void Release(); void Release();
void *m_pReg;
unsigned m_iBackrefs;
RString m_sPattern;
}; };