Nevron Open Vision Documentation
Nevron.Nov.DataStructures Namespace / NStringSet Class / GetSimilarStrings Method
The string to search similar strings for.
The string similarity context that provides information for the edit distance budget and the cost of the various edit operations.


In This Topic
    GetSimilarStrings Method
    In This Topic
    Gets the subset of all strings in this set that are found to be similar to the given string using the specified string similarity context.
    Syntax
    'Declaration
     
    
    Public Function GetSimilarStrings( _
       ByVal str As System.String, _
       ByVal context As NStringSimilarityContext _
    ) As INSet(Of String)
    'Usage
     
    
    Dim instance As NStringSet
    Dim str As System.String
    Dim context As NStringSimilarityContext
    Dim value As INSet(Of String)
     
    value = instance.GetSimilarStrings(str, context)
    public INSet<string> GetSimilarStrings( 
       System.string str,
       NStringSimilarityContext context
    )

    Parameters

    str
    The string to search similar strings for.
    context
    The string similarity context that provides information for the edit distance budget and the cost of the various edit operations.
    Remarks
    The similarity is determined by the edit distance (a.k.a. Damerau–Levenshtein distance) of the strings, i.e. the number of insertions, removals, substitutions and transpositions of adjacent characters needed to transform one of the strings to the other.
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 7, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later)

    See Also