KiCad PCB EDA Suite
|
#include <eda_pattern_match.h>
Classes | |
struct | FIND_RESULT |
Public Member Functions | |
virtual | ~EDA_PATTERN_MATCH () |
virtual bool | SetPattern (const wxString &aPattern)=0 |
Set the pattern against which candidates will be matched. | |
virtual wxString const & | GetPattern () const =0 |
Return the pattern passed to SetPattern(). | |
virtual FIND_RESULT | Find (const wxString &aCandidate) const =0 |
Return the location and possibly length of a match iff a given candidate string matches the set pattern. | |
Definition at line 64 of file eda_pattern_match.h.
|
inlinevirtual |
Definition at line 83 of file eda_pattern_match.h.
|
pure virtual |
Return the location and possibly length of a match iff a given candidate string matches the set pattern.
Otherwise, return an invalid FIND_RESULT.
Implemented in EDA_PATTERN_MATCH_SUBSTR, EDA_PATTERN_MATCH_REGEX, EDA_PATTERN_MATCH_WILDCARD, and EDA_PATTERN_MATCH_RELATIONAL.
|
pure virtual |
Return the pattern passed to SetPattern().
Implemented in EDA_PATTERN_MATCH_SUBSTR, EDA_PATTERN_MATCH_REGEX, EDA_PATTERN_MATCH_WILDCARD, and EDA_PATTERN_MATCH_RELATIONAL.
|
pure virtual |
Set the pattern against which candidates will be matched.
If the pattern can not be processed, returns false.
Implemented in EDA_PATTERN_MATCH_SUBSTR, EDA_PATTERN_MATCH_REGEX, EDA_PATTERN_MATCH_REGEX_ANCHORED, EDA_PATTERN_MATCH_WILDCARD, EDA_PATTERN_MATCH_WILDCARD_ANCHORED, and EDA_PATTERN_MATCH_RELATIONAL.