Plasma Engine  2.0
Loading...
Searching...
No Matches
plPathPattern Struct Reference

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
 

Detailed Description

Describes a single path pattern.

A path pattern is something like "*.jpg", "SubFolder/*" or "*&zwj;/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.


The documentation for this struct was generated from the following files: