Click or drag to resize
DigitalRuneStringHelperComputeMatch Method
Computes a value that indicates the match between two strings.

Namespace: DigitalRune.Text
Assembly: DigitalRune (in DigitalRune.dll) Version: 1.20.0.0 (1.20.1.14552)
Syntax
public static float ComputeMatch(
	string textA,
	string textB
)

Parameters

textA
Type: SystemString
The first string.
textB
Type: SystemString
The second string.

Return Value

Type: Single
If the strings have nothing in common 0 is returned. If the strings are identical 1 is returned. Otherwise a value between 0 and 1 is returned that indicates how similar the strings are.
Exceptions
ExceptionCondition
ArgumentNullExceptiontextA is .
ArgumentNullExceptiontextB is .
Remarks
This method can be used to perform a fuzzy search among keywords.
See Also