![]() |
XII Release 0.1.0
|
Describes a single path pattern for filtering file paths. More...
#include <PathPatternFilter.h>
Public Types | |
| enum | MatchType : xiiUInt8 { Exact , StartsWith , EndsWith , Contains } |
Public Member Functions | |
| void | Configure (const xiiStringView sText) |
| Sets up the pattern from the given text. Whitespace is trimmed. | |
| bool | Matches (const xiiStringView sText) const |
| Returns true if the given text matches this path pattern. | |
Public Attributes | |
| MatchType | m_MatchType = MatchType::Exact |
| xiiString | m_sString |
Describes a single path pattern for filtering file paths.
A path pattern is something like "*.jpg", "SubFolder/*" or "*‍/temp/*". It may start or end with a * indicating that it matches paths that start with, end with, or contain the pattern. If no * is present, the pattern has to match exactly.