C# Класс FileScanner.PatternMatching.AhoMatcher

The implementation of IMatcher interface using Aho-Corasick algorithm for matching patterns in text.
Наследование: IMatcher
Показать файл Открыть проект

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

Метод Описание
AhoMatcher ( List patterns ) : System.Collections.Generic

Initializes a new instance of the AhoMatcher class for the specified patterns.

IsMatch ( TextReader reader ) : bool
Match ( TextReader reader ) : Match
Matches ( TextReader reader ) : IEnumerable

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

Метод Описание
Match ( TextReader reader, int position ) : int>.KeyValuePair

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

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

Initializes a new instance of the AhoMatcher class for the specified patterns.
public AhoMatcher ( List patterns ) : System.Collections.Generic
patterns List The patterns to search for in text.
Результат System.Collections.Generic

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

public IsMatch ( TextReader reader ) : bool
reader System.IO.TextReader
Результат bool

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

public Match ( TextReader reader ) : Match
reader System.IO.TextReader
Результат Match

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

public Matches ( TextReader reader ) : IEnumerable
reader System.IO.TextReader
Результат IEnumerable