コード例 #1
0
 /// <summary>Find the best approximate match for <paramref name="words"/> in <paramref name="text"/>. Also takes into account the <paramref name="words"/>'s distance from the beginning.</summary>
 public static StrMatch WordMatch(this string text, params string[] words) => StringMatching.WordMatch(text, words);
コード例 #2
0
 /// <summary>Find the best approximate match for <paramref name="words"/> in <paramref name="text"/>. Also takes into account the <paramref name="words"/>'s distance from the beginning.</summary>
 /// <param name="cReplace">Cost of replace operation. Default is 1.</param>
 /// <param name="cInsert">Cost of insert operation. Default is 1.</param>
 /// <param name="cDelete">Cost of delete operation. Default is 1.</param>
 public static StrMatch WordMatch(this string text, string[] words, int cReplace, int cInsert, int cDelete) => StringMatching.WordMatch(text, words, cReplace, cInsert, cDelete);
コード例 #3
0
 /// <summary>Find the best approximate match for <paramref name="words"/> in <paramref name="text"/>. Also takes into account the <paramref name="words"/>'s distance from the beginning.</summary>
 /// <remarks>Uses case insensitive matching. Matches each word</remarks>
 public static StrMatch WordMatch(this string text, string words) => StringMatching.WordMatch(text, words);