UtilStringGetDiffCount(String, String, Int32) Method
Computes the total amount of differences (insertions, deletions or substitutions) between two strings,
by using the Levenshtein algorithm.
Namespace: DevCase.Core.DataProcessing.CommonAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static double GetDiffCount(
string first,
string second,
int limit
)
Public Shared Function GetDiffCount (
first As String,
second As String,
limit As Integer
) As Double
Dim first As String
Dim second As String
Dim limit As Integer
Dim returnValue As Double
returnValue = UtilString.GetDiffCount(first,
second, limit)
public:
static double GetDiffCount(
String^ first,
String^ second,
int limit
)
static member GetDiffCount :
first : string *
second : string *
limit : int -> float
No code example is currently available or this language may not be supported.
- first String
-
The first string to compare.
- second String
-
The second string to compare.
- limit Int32
-
The maximum result to compute before stopping.
This means that the calculation can terminate early if you only care about strings with a certain similarity.
Set the limit to Int32 if you want to run the calculation to completion in every case.
Double
The total amount of differences (insertions, deletions or substitutions) between the two strings.
This is a code example.
No code example is currently available or this language may not be supported.
Dim first As String = "Hello"
Dim second As String = "H3ll0"
Dim diffCount As Double = GetDiffCount(first, second, Integer.MaxValue)
Console.WriteLine($"{NameOf(diffCount)}: {diffCount}")
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.