Perl regex value check.
More...
#include <ValuePerlRECheck.hpp>
Perl regex value check.
The ValuePerlRECheck implements a simple perl regex match check that can be used in ValueCheck.
ca_mgm::ValuePerlRECheck::ValuePerlRECheck |
( |
const std::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.
- Parameters
-
regex | Perl regular expression string. |
icase | Match case insensitive. |
utf8 | Whether to enable UTF8 mode. |
- Exceptions
-
virtual std::string ca_mgm::ValuePerlRECheck::explain |
( |
const std::string & |
value | ) |
const |
|
virtual |
Return a string showing the regex matching the specified string value.
- Parameters
-
- Returns
- A string showing the check.
Implements ca_mgm::ValueCheckBase.
virtual bool ca_mgm::ValuePerlRECheck::isValid |
( |
const std::string & |
value | ) |
const |
|
virtual |
Return whether the regular expression matches the specified string value.
- Parameters
-
- Returns
- true, if the regex matches the value, false on no match.
- Exceptions
-
Implements ca_mgm::ValueCheckBase.
The documentation for this class was generated from the following file: