XII Release 0.1.0
Loading...
Searching...
No Matches
xiiPathPattern Struct Reference

Describes a single path pattern. 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
 

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: