C# Класс 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.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
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.

Описание методов

Matches() публичный Метод

Returns true if this instance contains the given tag.
public Matches ( string tag ) : bool
tag string
Результат bool

Tags() публичный Метод

Creates new tags instance.
public Tags ( ) : System.Text.RegularExpressions
Результат System.Text.RegularExpressions

Tags() публичный Метод

Creates new tags instance.
public Tags ( string value ) : System.Text.RegularExpressions
value string
Результат System.Text.RegularExpressions

ToString() публичный Метод

Returns tags as string.
public ToString ( ) : string
Результат string