Beispiel #1
0
        public void addMatch(LevenshteinMatch match)
        {
            if (foundMatches == null)
            {
                foundMatches = new List <LevenshteinMatch>();
            }

            foundMatches.Add(match);
        }
Beispiel #2
0
        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);
        }
Beispiel #3
0
 public LevenshteinMatches(LevenshteinMatch match)
 {
     foundMatches = new List <LevenshteinMatch>();
     foundMatches.Add(match);
 }