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 if a given candidate string matches the set pattern. | |
Protected Attributes | |
wxString | m_wildcard_pattern |
wxString | m_pattern |
wxRegEx | m_regex |
Definition at line 147 of file eda_pattern_match.h.
|
overridevirtual |
Return the location and possibly length of a match if a given candidate string matches the set pattern.
Otherwise, return an invalid #FIND_RESULT.
Reimplemented from EDA_PATTERN_MATCH_REGEX.
Definition at line 201 of file eda_pattern_match.cpp.
References EDA_PATTERN_MATCH_REGEX::Find().
|
overridevirtual |
Return the pattern passed to SetPattern().
Reimplemented from EDA_PATTERN_MATCH_REGEX.
Definition at line 195 of file eda_pattern_match.cpp.
References m_wildcard_pattern.
|
overridevirtual |
Set the pattern against which candidates will be matched.
Reimplemented from EDA_PATTERN_MATCH_REGEX.
Reimplemented in EDA_PATTERN_MATCH_WILDCARD_ANCHORED.
Definition at line 158 of file eda_pattern_match.cpp.
References m_wildcard_pattern, and EDA_PATTERN_MATCH_REGEX::SetPattern().
|
protectedinherited |
Definition at line 135 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 136 of file eda_pattern_match.h.
Referenced by EDA_PATTERN_MATCH_REGEX::Find(), and EDA_PATTERN_MATCH_REGEX::SetPattern().
|
protected |
Definition at line 156 of file eda_pattern_match.h.
Referenced by GetPattern(), SetPattern(), and EDA_PATTERN_MATCH_WILDCARD_ANCHORED::SetPattern().