C# Class FileScanner.PatternMatching.AhoMatcher

The implementation of IMatcher interface using Aho-Corasick algorithm for matching patterns in text.
Inheritance: IMatcher
Afficher le fichier Open project: kzemek/FileScanner

Méthodes publiques

Méthode Description
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

Private Methods

Méthode Description
Match ( TextReader reader, int position ) : int>.KeyValuePair

Method Details

AhoMatcher() public méthode

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.
Résultat System.Collections.Generic

IsMatch() public méthode

public IsMatch ( TextReader reader ) : bool
reader System.IO.TextReader
Résultat bool

Match() public méthode

public Match ( TextReader reader ) : Match
reader System.IO.TextReader
Résultat Match

Matches() public méthode

public Matches ( TextReader reader ) : IEnumerable
reader System.IO.TextReader
Résultat IEnumerable