C# Class VS_QuickNavigation.StringScore

显示文件 Open project: thennequin/VS-QuickNavigation

Public Methods

Method Description
FormatMatches ( string sString, int>.List matches, bool>.List formatted, int start ) : void
LevenshteinDistance ( string a, string b ) : int
Search ( string word, IEnumerable wordList, double fuzzyness ) : List
Search ( string search, string words, double fuzzyness ) : List
Search ( string query, string content, int>.List matchIndexOut = null, int doubleScoreStart ) : int

Private Methods

Method Description
CharScore ( char a, char b ) : int

Method Details

FormatMatches() public static method

public static FormatMatches ( string sString, int>.List matches, bool>.List formatted, int start ) : void
sString string
matches int>.List
formatted bool>.List
start int
return void

LevenshteinDistance() public static method

public static LevenshteinDistance ( string a, string b ) : int
a string
b string
return int

Search() public static method

public static Search ( string word, IEnumerable wordList, double fuzzyness ) : List
word string
wordList IEnumerable
fuzzyness double
return List

Search() public static method

public static Search ( string search, string words, double fuzzyness ) : List
search string
words string
fuzzyness double
return List

Search() public static method

public static Search ( string query, string content, int>.List matchIndexOut = null, int doubleScoreStart ) : int
query string
content string
matchIndexOut int>.List
doubleScoreStart int
return int