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

Copyright (c) Theophilus Eriata. All Rights Reserved. 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

Copyright (c) Theophilus Eriata. All Rights Reserved.

Describes a single path pattern for filtering file paths.

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.

Member Function Documentation

◆ Configure()

void xiiPathPattern::Configure ( const xiiStringView sText)

Sets up the pattern from the given text. Whitespace is trimmed.

Copyright (c) Theophilus Eriata. All Rights Reserved.


The documentation for this struct was generated from the following files:
  • /home/runner/work/XII/XII/Source/Tools/Libs/ToolsFoundation/Utilities/PathPatternFilter.h
  • /home/runner/work/XII/XII/Source/Tools/Libs/ToolsFoundation/Utilities/Implementation/PathPatternFilter.cpp