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.
Afficher le fichier Open project: aura-project/aura Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

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

Tags() public méthode

Creates new tags instance.
public Tags ( ) : System.Text.RegularExpressions
Résultat System.Text.RegularExpressions

Tags() public méthode

Creates new tags instance.
public Tags ( string value ) : System.Text.RegularExpressions
value string
Résultat System.Text.RegularExpressions

ToString() public méthode

Returns tags as string.
public ToString ( ) : string
Résultat string