UtilStringGetDiffCount(String, String, Int32) Method

Computes the total amount of differences (insertions, deletions or substitutions) between two strings, by using the Levenshtein algorithm.

Definition

Namespace: DevCase.Core.DataProcessing.Common
Assembly: 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
)

Parameters

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.

Return Value

Double
The total amount of differences (insertions, deletions or substitutions) between the two strings.

Remarks

Example

This is a code example.
C#
No code example is currently available or this language may not be supported.

Exceptions

ArgumentNullException

See Also