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

Glob-like pattern matcher for strings, supporting '*' and '? More...

Public Member Functions

 STRING_PATTERN_MATCHER (const std::string &aPattern)
 
void Test (const std::string &aStr) const
 

Static Public Member Functions

static bool matchPredicate (const std::string &aStr, const std::string &aPattern)
 

Private Attributes

std::string m_pattern
 

Detailed Description

Glob-like pattern matcher for strings, supporting '*' and '?

' wildcards

Definition at line 124 of file board_expectations.cpp.

Constructor & Destructor Documentation

◆ STRING_PATTERN_MATCHER()

STRING_PATTERN_MATCHER::STRING_PATTERN_MATCHER ( const std::string & aPattern)
inlineexplicit

Definition at line 127 of file board_expectations.cpp.

References m_pattern.

Member Function Documentation

◆ matchPredicate()

static bool STRING_PATTERN_MATCHER::matchPredicate ( const std::string & aStr,
const std::string & aPattern )
inlinestatic

Definition at line 132 of file board_expectations.cpp.

Referenced by Test().

◆ Test()

void STRING_PATTERN_MATCHER::Test ( const std::string & aStr) const
inline

Definition at line 137 of file board_expectations.cpp.

References BOOST_CHECK_PREDICATE(), m_pattern, and matchPredicate().

Member Data Documentation

◆ m_pattern

std::string STRING_PATTERN_MATCHER::m_pattern
private

Definition at line 140 of file board_expectations.cpp.

Referenced by STRING_PATTERN_MATCHER(), and Test().


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