KiCad PCB EDA Suite
Loading...
Searching...
No Matches
EDA_PATTERN_MATCH_SUBSTR Class Reference

#include <eda_pattern_match.h>

Inheritance diagram for EDA_PATTERN_MATCH_SUBSTR:
EDA_PATTERN_MATCH

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
 

Detailed Description

Definition at line 108 of file eda_pattern_match.h.

Member Function Documentation

◆ Find()

EDA_PATTERN_MATCH::FIND_RESULT EDA_PATTERN_MATCH_SUBSTR::Find ( const wxString &  aCandidate) const
overridevirtual

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.

Definition at line 47 of file eda_pattern_match.cpp.

References m_pattern.

◆ GetPattern()

wxString const & EDA_PATTERN_MATCH_SUBSTR::GetPattern ( ) const
overridevirtual

Return the pattern passed to SetPattern().

Implements EDA_PATTERN_MATCH.

Definition at line 41 of file eda_pattern_match.cpp.

References m_pattern.

◆ SetPattern()

bool EDA_PATTERN_MATCH_SUBSTR::SetPattern ( const wxString &  aPattern)
overridevirtual

Set the pattern against which candidates will be matched.

If the pattern can not be processed, returns false.

Implements EDA_PATTERN_MATCH.

Definition at line 34 of file eda_pattern_match.cpp.

References m_pattern.

Member Data Documentation

◆ m_pattern

wxString EDA_PATTERN_MATCH_SUBSTR::m_pattern
protected

Definition at line 117 of file eda_pattern_match.h.

Referenced by Find(), GetPattern(), and SetPattern().


The documentation for this class was generated from the following files: