CKFinder 3 – ASP.NET Connector Documentation
StringMatcher Class Reference

Defines mask based string matcher. More...

Public Member Functions

 StringMatcher (string template)
 Constructs a new instance of StringMatcher. More...
 
bool IsMatch (string text)
 Matches text against this matcher. More...
 
MatcherComparisonResult Compare (StringMatcher other)
 Determines whether this StringMatcher is a sub-set, a super-set, is equal to or is distinct from the other StringMatcher. More...
 

Static Public Member Functions

static MatcherComparisonResult Compare (StringMatcher lhs, StringMatcher rhs)
 Determines whether first StringMatcher is a sub-set, a super-set, is equal to or is distinct from the second StringMatcher. More...
 

Properties

string Template \*".*?"\?"." [get]
 Gets the template string. More...
 

Detailed Description

Defines mask based string matcher.

Constructor & Destructor Documentation

◆ StringMatcher()

StringMatcher ( string  template)
inline

Constructs a new instance of StringMatcher.

The template may contain:

  • * character to match zero or more characters
  • ? character to exactly one character
Parameters
templateA template for matching

Member Function Documentation

◆ Compare() [1/2]

static MatcherComparisonResult Compare ( StringMatcher  lhs,
StringMatcher  rhs 
)
inlinestatic

Determines whether first StringMatcher is a sub-set, a super-set, is equal to or is distinct from the second StringMatcher.

Parameters
lhsA first StringMatcher to compare.
rhsA second StringMatcher to compare.
Returns
A MatcherComparisonResult value with comparison result.

◆ Compare() [2/2]

MatcherComparisonResult Compare ( StringMatcher  other)
inline

Determines whether this StringMatcher is a sub-set, a super-set, is equal to or is distinct from the other StringMatcher.

Parameters
otherA StringMatcher to compare.
Returns
A MatcherComparisonResult value with comparison result.

◆ IsMatch()

bool IsMatch ( string  text)
inline

Matches text against this matcher.

Parameters
textA text to match.
Returns
True if match is successful.

Property Documentation

◆ Template

string Template \*".*?"\?"."
get

Gets the template string.


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