![]() |
Kinetis Bootloader Host
2.0.0
Host Tools for Kinetis devices
|
This class uses glob pattern matching to match strings. More...
#include <GlobMatcher.h>
Inheritance diagram for blfwk::GlobMatcher:
Collaboration diagram for blfwk::GlobMatcher:Public Member Functions | |
| GlobMatcher (const std::string &pattern) | |
| Constructor. | |
| virtual bool | match (const std::string &testValue) |
| Returns whether testValue matches the glob pattern. More... | |
Protected Member Functions | |
| bool | globMatch (const char *str, const char *p) |
| Glob implementation. More... | |
Protected Attributes | |
| std::string | m_pattern |
| The glob pattern to match against. | |
This class uses glob pattern matching to match strings.
Glob patterns:
Examples:
|
protected |
Glob implementation.
|
virtual |
Returns whether testValue matches the glob pattern.
The glob pattern must match the entire test value argument in order for the match to be considered successful. Thus, even if, for example, the pattern matches all but the last character the result will be false.
| true | The test value does match the glob pattern. |
| false | The test value does not match the glob pattern. |
Implements blfwk::StringMatcher.
Reimplemented in blfwk::ExcludesListMatcher.