![]() |
Plasma Engine
2.0
|
Describes a single path pattern. More...
#include <PathPatternFilter.h>
Public Types | |
enum | MatchType : plUInt8 { Exact , StartsWith , EndsWith , Contains } |
Public Member Functions | |
void | Configure (const plStringView sText) |
Sets up the pattern from the given text. Whitespace is trimmed. | |
bool | Matches (const plStringView sText) const |
Returns true if the given text matches this path pattern. | |
Public Attributes | |
MatchType | m_MatchType = MatchType::Exact |
plString | m_sString |
Describes a single path pattern.
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.