 | StringExtensionsLevenshtein Method (String, String, LevenshteinOptions) |
Returns the Levenshtein distance between source and pattern with the given poptions.
Namespace:
SphinxConnector.FluentApi.Util
Assembly:
SphinxConnector (in SphinxConnector.dll) Version: 5.4.1
Syntaxpublic static int Levenshtein(
this string source,
string pattern,
LevenshteinOptions options
)
<ExtensionAttribute>
Public Shared Function Levenshtein (
source As String,
pattern As String,
options As LevenshteinOptions
) As Integer
Parameters
- source
- Type: SystemString
The source string. - pattern
- Type: SystemString
The pattern string. - options
- Type: SphinxConnector.FluentApiLevenshteinOptions
The options for calculating the Levenshtein distance.
Return Value
Type:
Int32The Levenshtein distance.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
String. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
Remarks
Supported with Manticore Search 4.0.2 and up.
See Also