Unravel Engine C++ Reference
|
A wildcard pattern matcher that supports * (match any sequence) and ? (match single character) More...
#include <pattern_filter.h>
Public Member Functions | |
wildcard_pattern (const std::string &pattern) | |
Constructs a wildcard pattern from a string. | |
auto | matches (const std::string &str) const -> bool |
Tests if the given string matches this pattern. | |
auto | get_pattern () const -> const std::string & |
Gets the original pattern string. | |
A wildcard pattern matcher that supports * (match any sequence) and ? (match single character)
Definition at line 14 of file pattern_filter.h.
|
explicit |
Constructs a wildcard pattern from a string.
pattern | Pattern string with * and ? wildcards |
Definition at line 7 of file pattern_filter.cpp.
|
inline |
Gets the original pattern string.
Definition at line 33 of file pattern_filter.h.
auto fs::wildcard_pattern::matches | ( | const std::string & | str | ) | const -> bool |
Tests if the given string matches this pattern.
str | String to test against the pattern |
Definition at line 12 of file pattern_filter.cpp.