Wrapper around std::regex, which contains original pattern.
More...
Wrapper around std::regex, which contains original pattern.
Definition at line 240 of file types.h.
#include <types.h>
|
| regex (std::regex r, std::string p) |
| Constructor.
|
|
bool | operator%= (const std::string &v) const |
| Regular expression match operator.
|
|
◆ regex()
clanguml::common::regex::regex |
( |
std::regex |
r, |
|
|
std::string |
p |
|
) |
| |
|
inline |
Constructor.
- Parameters
-
r | Parsed regular expression |
p | Raw regular expression pattern used for regenerating config and debugging |
Definition at line 248 of file types.h.
◆ operator%=()
bool clanguml::common::regex::operator%= |
( |
const std::string & |
v | ) |
const |
|
inline |
Regular expression match operator.
- Parameters
-
v | Value to match against internal std::regex |
- Returns
- True, if the argument matches the regular expression
Definition at line 259 of file types.h.
260 {
261 return std::regex_match(v,
regexp);
262 }
◆ pattern
std::string clanguml::common::regex::pattern |
Original regular expression pattern
Definition at line 265 of file types.h.
◆ regexp
std::regex clanguml::common::regex::regexp |
Parsed regular expression
Definition at line 264 of file types.h.
The documentation for this struct was generated from the following file: