KiCad PCB EDA Suite
|
Custom validator that checks verifies that a string exactly matches a regular expression. More...
#include <validators.h>
Public Member Functions | |
REGEX_VALIDATOR (const wxString &aRegEx, wxString *aValue=nullptr) | |
REGEX_VALIDATOR (const wxString &aRegEx, int aFlags, wxString *aValue=nullptr) | |
REGEX_VALIDATOR (const REGEX_VALIDATOR &aOther) | |
virtual wxObject * | Clone () const override |
bool | Validate (wxWindow *aParent) override |
const wxString & | GetRegEx () const |
Protected Member Functions | |
void | compileRegEx (const wxString &aRegEx, int aFlags) |
< Compiles and stores a regular expression More... | |
Protected Attributes | |
wxString | m_regExString |
Original compilation flags (for copy constructor) More... | |
int | m_regExFlags |
Compiled regex. More... | |
wxRegEx | m_regEx |
Custom validator that checks verifies that a string exactly matches a regular expression.
Definition at line 116 of file validators.h.
|
inline |
aRegEx | is a regular expression to validate strings. |
aValue | is a pointer to a wxString containing the value to validate. |
Definition at line 123 of file validators.h.
References compileRegEx().
Referenced by Clone().
|
inline |
aRegEx | is a regular expression to validate strings. |
aFlags | are compilation flags (normally wxRE_DEFAULT). |
aValue | is a pointer to a wxString containing the value to validate. |
Definition at line 134 of file validators.h.
References compileRegEx().
|
inline |
Definition at line 140 of file validators.h.
References compileRegEx(), m_regExFlags, and m_regExString.
|
inlineoverridevirtual |
Definition at line 145 of file validators.h.
References REGEX_VALIDATOR().
|
protected |
< Compiles and stores a regular expression
Original regular expression (for copy constructor)
Definition at line 258 of file validators.cpp.
References m_regEx, m_regExFlags, and m_regExString.
Referenced by REGEX_VALIDATOR().
|
inline |
Definition at line 152 of file validators.h.
References m_regExString.
|
override |
Definition at line 220 of file validators.cpp.
References _, DisplayError(), Format(), and m_regEx.
|
protected |
Definition at line 168 of file validators.h.
Referenced by compileRegEx(), and Validate().
|
protected |
Compiled regex.
Definition at line 165 of file validators.h.
Referenced by compileRegEx(), and REGEX_VALIDATOR().
|
protected |
Original compilation flags (for copy constructor)
Definition at line 162 of file validators.h.
Referenced by compileRegEx(), GetRegEx(), and REGEX_VALIDATOR().