1 instantiation of AhoCorasick
System.Private.CoreLib (1)
src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\Helpers\AhoCorasickBuilder.cs (1)
56
return new
AhoCorasick
(_nodes.AsSpan().ToArray(), _startingAsciiChars);
9 references to AhoCorasick
System.Private.CoreLib (9)
src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\Helpers\AhoCorasickBuilder.cs (2)
12
/// Separated out of <see cref="
AhoCorasick
"/> to allow us to defer some computation costs in case we decide not to build the full thing.
40
public
AhoCorasick
Build()
src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\StringSearchValues.cs (4)
137
AhoCorasick
ahoCorasick = ahoCorasickBuilder.Build();
163
static SearchValues<string> PickAhoCorasickImplementation<TCaseSensitivity>(
AhoCorasick
ahoCorasick, HashSet<string> uniqueValues)
167
? new StringSearchValuesAhoCorasick<TCaseSensitivity,
AhoCorasick
.IndexOfAnyAsciiFastScan>(ahoCorasick, uniqueValues)
168
: new StringSearchValuesAhoCorasick<TCaseSensitivity,
AhoCorasick
.NoFastScan>(ahoCorasick, uniqueValues);
src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\StringSearchValuesAhoCorasick.cs (3)
11
where TFastScanVariant : struct,
AhoCorasick
.IFastScan
13
private readonly
AhoCorasick
_ahoCorasick;
15
public StringSearchValuesAhoCorasick(
AhoCorasick
ahoCorasick, HashSet<string> uniqueValues) : base(uniqueValues) =>