1using System.Collections.Generic;
2using System.Text.RegularExpressions;
3using System.Threading.Tasks;
49 public override bool Equals(
object obj)
71 string Preamble = this.
Keyword.Substring(0, i);
72 char[] Characters = Preamble.ToCharArray();
74 string ToExclusive =
new string(Characters);
76 LinkedList<KeyValuePair<string, TokenReferences>> Result =
new LinkedList<KeyValuePair<string, TokenReferences>>();
77 KeyValuePair<string, object>[] Records = await
Process.Index.GetEntriesAsync(Preamble, ToExclusive);
79 foreach (KeyValuePair<string, object> Rec
in Records)
81 Match M = this.
Parsed.Match(Rec.Key);
82 if (M.Success && M.Index == 0 && M.Length == Rec.Key.Length && Rec.Value is
TokenReferences References)
83 Result.AddLast(
new KeyValuePair<string, TokenReferences>(Rec.Key, References));
Static interface for database persistence. In order to work, a database provider has to be assigned t...
Abstract base class for keywords.
virtual async Task< bool > Process(SearchProcess Process)
Processes the keyword in a search process.
abstract Task< IEnumerable< KeyValuePair< string, TokenReferences > > > GetTokenReferences(SearchProcess Process)
Gets available token references.
Represents a wildcard keyword.
Contains information about a search process.
Represents a wildcard keyword.
WildcardKeyword(string Keyword)
Represents a plain keyword, where keyword acts as a prefix.
WildcardKeyword(string Keyword, string Wildcard)
Represents a wildcard keyword.
override async Task< IEnumerable< KeyValuePair< string, TokenReferences > > > GetTokenReferences(SearchProcess Process)
Gets available token references.
override bool Equals(object obj)
override string ToString()
override int OrderComplexity
Order complexity (within category) of keyword
Contains a sequence of object references that include the token in its indexed text properties.