/// <summary> /// Initializes a new instance of the <see cref="AhoCorasick"/> class. /// </summary> /// <remarks>Does not build the failure nodes. Call <see cref="BuildFail"/> after adding words before calling <see cref="Search"/>.</remarks> /// <param name="comparer">The comparer used to compare individual characters.</param> public AhoCorasick(IEqualityComparer <char> comparer) { Trie = new Trie(comparer); }
/// <summary> /// Initializes a new instance of the <see cref="AhoCorasick"/> class. /// <remarks>Does not build the failure nodes. Call <see cref="BuildFail"/> after adding words before calling <see cref="Search"/>.</remarks> /// </summary> public AhoCorasick() { Trie = new Trie(); }