GH_StringMatcher

public class GH_StringMatcher
Utility class for finding matches in a database of Strings.

Constructors

GH_StringMatcher

#
public GH_StringMatcher()

Methods

ComputeWeight

#
Compute the weight of the match. Utility function that performs specified match types until a match is found.
public static int ComputeWeight(
value,
Value to match.
key,
Key to match against.
level,
Matching level to apply (multiple levers are possible).
comp
String comparison to use during matching.
)
An integer describing the weighting of the match.

ComputeWeight

#
Compute the weight of the match. Utility function that performs all match types until a match is found.
public static int ComputeWeight(
value,
Value to match.
key,
Key to match against.
comp
String comparison to use during matching.
)
An integer describing the weighting of the match.

LevenshteinDistance

#
Bottom up implementation of the Levenshtein Distance algorithm. see: http://en.wikipedia.org/wiki/Levenshtein_distance for further details.
public static int LevenshteinDistance(
A,
Base string. Case sensitive.
B
Target string. Case sensitive.
)
Number of edit operations required to change A into B.