 | StringHelperComputeMatch Method |
Computes a value that indicates the match between two strings.
Namespace: DigitalRune.TextAssembly: DigitalRune (in DigitalRune.dll) Version: 1.20.0.0 (1.20.1.14552)
Syntaxpublic static float ComputeMatch(
string textA,
string textB
)
Public Shared Function ComputeMatch (
textA As String,
textB As String
) As Single
public:
static float ComputeMatch(
String^ textA,
String^ textB
)
static member ComputeMatch :
textA : string *
textB : string -> float32
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
Remarks
This method can be used to perform a fuzzy search among keywords.
See Also