C# Class Aura.Mabi.Tags

Represents a tag string, that can be checked against.
Supports AND "&", OR "|", braces "()", and asterisks as wildcard. Since the match check uses regex, more complicated checks than the ones in the examples could technically be done.
Datei anzeigen Open project: aura-project/aura Class Usage Examples

Public Methods

Method Description
Matches ( string tag ) : bool

Returns true if this instance contains the given tag.

Tags ( ) : System.Text.RegularExpressions

Creates new tags instance.

Tags ( string value ) : System.Text.RegularExpressions

Creates new tags instance.

ToString ( ) : string

Returns tags as string.

Private Methods

Method Description
Check ( string tags, int level ) : bool

Returns true if the given string matches the tags of this instance.

Evaluate ( string tag ) : bool

Returns true if the given tag can be found inside this instance.

Method Details

Matches() public method

Returns true if this instance contains the given tag.
public Matches ( string tag ) : bool
tag string
return bool

Tags() public method

Creates new tags instance.
public Tags ( ) : System.Text.RegularExpressions
return System.Text.RegularExpressions

Tags() public method

Creates new tags instance.
public Tags ( string value ) : System.Text.RegularExpressions
value string
return System.Text.RegularExpressions

ToString() public method

Returns tags as string.
public ToString ( ) : string
return string