HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UT_PathPattern Class Reference

#include <UT_PathPattern.h>

+ Inheritance diagram for UT_PathPattern:

Classes

class  Token
 

Public Member Functions

 UT_PathPattern (const UT_StringRef &pattern, bool case_sensitive=true, bool assume_wildcards=false)
 
virtual ~UT_PathPattern ()
 
bool matches (const UT_StringRef &path, bool *excludes_branch=nullptr) const
 
bool getExplicitList (UT_StringArray &tokens) const
 
bool getCaseSensitive () const
 
bool getAssumeWildcardsAroundPlainTokens () const
 
const UT_StringHoldergetPatternError () const
 

Protected Member Functions

 UT_PathPattern (bool case_sensitive, bool assume_wildcards)
 
UT_PathPatterncreatePruningPattern (int tokenidx)
 
UT_PathPatterncreatePrecedingGroupPattern (int tokenidx)
 
virtual UT_PathPatterncreateEmptyClone () const
 
virtual bool matchSpecialToken (const UT_StringRef &path, const Token &token, bool *excludes_branch) const
 
void testForExplicitList ()
 
void patternInterrupted ()
 

Protected Attributes

UT_Array< TokenmyTokens
 

Detailed Description

Definition at line 35 of file UT_PathPattern.h.

Constructor & Destructor Documentation

UT_PathPattern::UT_PathPattern ( const UT_StringRef pattern,
bool  case_sensitive = true,
bool  assume_wildcards = false 
)
virtual UT_PathPattern::~UT_PathPattern ( )
virtual
UT_PathPattern::UT_PathPattern ( bool  case_sensitive,
bool  assume_wildcards 
)
protected

Member Function Documentation

virtual UT_PathPattern* UT_PathPattern::createEmptyClone ( ) const
inlineprotectedvirtual

Reimplemented in HUSD_PathPattern.

Definition at line 81 of file UT_PathPattern.h.

UT_PathPattern* UT_PathPattern::createPrecedingGroupPattern ( int  tokenidx)
protected
UT_PathPattern* UT_PathPattern::createPruningPattern ( int  tokenidx)
protected
bool UT_PathPattern::getAssumeWildcardsAroundPlainTokens ( ) const
inline

Definition at line 49 of file UT_PathPattern.h.

bool UT_PathPattern::getCaseSensitive ( ) const
inline

Definition at line 47 of file UT_PathPattern.h.

bool UT_PathPattern::getExplicitList ( UT_StringArray tokens) const
const UT_StringHolder& UT_PathPattern::getPatternError ( ) const
inline

Definition at line 51 of file UT_PathPattern.h.

bool UT_PathPattern::matches ( const UT_StringRef path,
bool *  excludes_branch = nullptr 
) const
virtual bool UT_PathPattern::matchSpecialToken ( const UT_StringRef path,
const Token token,
bool *  excludes_branch 
) const
protectedvirtual

Reimplemented in HUSD_PathPattern.

void UT_PathPattern::patternInterrupted ( )
protected
void UT_PathPattern::testForExplicitList ( )
protected

Member Data Documentation

UT_Array<Token> UT_PathPattern::myTokens
protected

Definition at line 93 of file UT_PathPattern.h.


The documentation for this class was generated from the following file: