MathUtilEditDistance Method (String, String) | |
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
Gets the Levenshtein edit distance between two strings.
Namespace:
Telogis.GeoBase
Assembly:
geobase.net (in geobase.net.dll) Version: 4.99.0.0
Syntax public static int EditDistance(
string stringA,
string stringB
)
Public Shared Function EditDistance (
stringA As String,
stringB As String
) As Integer
Parameters
- stringA
- Type: SystemString
The first string to compare. - stringB
- Type: SystemString
The second string to compare.
Return Value
Type:
Int32The Levenshtein edit distance, or -1 if either of the input strings is empty.
See Also