Added method used to check if a Regexp is valid.

git-svn-id: http://voip.null.ro/svn/yate@6094 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
marian 2016-02-19 12:36:51 +00:00
parent a5768061f9
commit cf2e0b8842
1 changed files with 7 additions and 0 deletions

View File

@ -2915,6 +2915,13 @@ public:
inline Regexp& operator=(const char* value)
{ String::operator=(value); return *this; }
/**
* Check if the regular expression is valid
* @return True if valid, false if not
*/
inline bool valid() const
{ return m_regexp != 0; }
/**
* Makes sure the regular expression is compiled
* @return True if successfully compiled, false on error