#include <ValuePosixRECheck.hpp>

Public Member Functions | |
| ValuePosixRECheck (const BLOCXX_NAMESPACE::String ®ex, bool icase=false) | |
| virtual bool | isValid (const BLOCXX_NAMESPACE::String &value) const |
| virtual BLOCXX_NAMESPACE::String | explain (const BLOCXX_NAMESPACE::String &value) const |
Private Attributes | |
| BLOCXX_NAMESPACE::PosixRegEx | m_reg |
The ValuePosixRECheck implements a simple posix regex match check that can be used in ValueCheck.
| limal::ValuePosixRECheck::ValuePosixRECheck | ( | const BLOCXX_NAMESPACE::String & | regex, | |
| bool | icase = false | |||
| ) |
Constructor compiling a extended regular expression used to validate a value.
The match is case sensitive unless the icase flag is set.
| regex | Extended regular expression string. | |
| icase | Match case insensitive. |
| blocxx::RegExCompileException | on invalid pattern |
| virtual bool limal::ValuePosixRECheck::isValid | ( | const BLOCXX_NAMESPACE::String & | value | ) | const [virtual] |
Return whether the regular expression matches the specified string value.
| value | A string value. |
| blocxx::RegExExecuteException | on execute failure. |
Implements limal::ValueCheckBase.
| virtual BLOCXX_NAMESPACE ::String limal::ValuePosixRECheck::explain | ( | const BLOCXX_NAMESPACE::String & | value | ) | const [virtual] |
Return a string showing the regex matching the specified string value.
| value | A string value. |
Implements limal::ValueCheckBase.
BLOCXX_NAMESPACE ::PosixRegEx limal::ValuePosixRECheck::m_reg [private] |
1.5.5