#include <ValuePerlRECheck.hpp>

Public Member Functions | |
| ValuePerlRECheck (const BLOCXX_NAMESPACE::String ®ex, bool icase=false, bool utf8=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::PerlRegEx | m_reg |
The ValuePerlRECheck implements a simple perl regex match check that can be used in ValueCheck.
| limal::ValuePerlRECheck::ValuePerlRECheck | ( | const BLOCXX_NAMESPACE::String & | regex, | |
| bool | icase = false, |
|||
| bool | utf8 = false | |||
| ) |
Constructor compiling a perl regular expression used to validate a value.
The match is case sensitive unless the icase flag is set.
| regex | Perl regular expression string. | |
| icase | Match case insensitive. | |
| utf8 | Whether to enable UTF8 mode. |
| blocxx::RegExCompileException | on invalid pattern or enabled utf8 mode with pcre that does not support it. |
| virtual bool limal::ValuePerlRECheck::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::ValuePerlRECheck::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 ::PerlRegEx limal::ValuePerlRECheck::m_reg [private] |
1.5.5