KiCad PCB EDA Suite
|
#include <eda_pattern_match.h>
Public Member Functions | |
virtual bool | SetPattern (const wxString &aPattern) override |
Set the pattern against which candidates will be matched. | |
virtual wxString const & | GetPattern () const override |
Return the pattern passed to SetPattern(). | |
virtual FIND_RESULT | Find (const wxString &aCandidate) const override |
Return the location and possibly length of a match iff a given candidate string matches the set pattern. | |
Protected Attributes | |
wxString | m_pattern |
wxRegEx | m_regex |
Definition at line 138 of file eda_pattern_match.h.
|
overridevirtualinherited |
Return the location and possibly length of a match iff a given candidate string matches the set pattern.
Otherwise, return an invalid FIND_RESULT.
Implements EDA_PATTERN_MATCH.
Reimplemented in EDA_PATTERN_MATCH_WILDCARD.
Definition at line 127 of file eda_pattern_match.cpp.
References CLAMPED_VAL_INT_MAX, EDA_PATTERN_MATCH_REGEX::m_pattern, and EDA_PATTERN_MATCH_REGEX::m_regex.
Referenced by EDA_PATTERN_MATCH_WILDCARD::Find().
|
overridevirtualinherited |
Return the pattern passed to SetPattern().
Implements EDA_PATTERN_MATCH.
Reimplemented in EDA_PATTERN_MATCH_WILDCARD.
Definition at line 121 of file eda_pattern_match.cpp.
References EDA_PATTERN_MATCH_REGEX::m_pattern.
|
overridevirtual |
Set the pattern against which candidates will be matched.
If the pattern can not be processed, returns false.
Reimplemented from EDA_PATTERN_MATCH_REGEX.
Definition at line 107 of file eda_pattern_match.cpp.
References EDA_PATTERN_MATCH_REGEX::SetPattern().
|
protectedinherited |
Definition at line 133 of file eda_pattern_match.h.
Referenced by EDA_PATTERN_MATCH_REGEX::Find(), EDA_PATTERN_MATCH_REGEX::GetPattern(), and EDA_PATTERN_MATCH_REGEX::SetPattern().
|
protectedinherited |
Definition at line 134 of file eda_pattern_match.h.
Referenced by EDA_PATTERN_MATCH_REGEX::Find(), and EDA_PATTERN_MATCH_REGEX::SetPattern().