public void addMatch(LevenshteinMatch match) { if (foundMatches == null) { foundMatches = new List <LevenshteinMatch>(); } foundMatches.Add(match); }
public void addMatch(string context, int position, int len, int dist) { if (foundMatches == null) { foundMatches = new List <LevenshteinMatch>(); } var newMatch = new LevenshteinMatch(context, position, len, dist); foundMatches.Add(newMatch); }
public LevenshteinMatches(LevenshteinMatch match) { foundMatches = new List <LevenshteinMatch>(); foundMatches.Add(match); }