C# Class FileScanner.SimpleResultTextGenerator

Generates search result displayed to user in a following manner: "path: - match phrase : occurences" for example: C:\File1.txt: - dog : 11 22 - cow : 33 44 C:\File2.txt: - cow : 55 - cat : 66 77
Inheritance: IResultTextGenerator
Mostrar archivo Open project: kzemek/FileScanner

Public Methods

Method Description
Generate ( ISearchResult searchResults ) : string

Private Methods

Method Description
GeneratePhrase ( StringBuilder sb, PatternMatching.Match>.IGrouping phraseGroup ) : void
GenerateSearchee ( StringBuilder sb, SearcheeResult result ) : void

Method Details

Generate() public method

public Generate ( ISearchResult searchResults ) : string
searchResults ISearchResult
return string