Edit

StringMatcher Class

Definition

Namespace: Microsoft.CommandPalette.Extensions.Toolkit

The StringMatcher class provides methods for performing fuzzy matching and searching on strings. It is used to compare two strings and determine their similarity based on a specified precision score.

Constructors

Constructor Description
StringMatcher() Initializes a new instance of the StringMatcher class.

Properties

Property Type Description
Instance StringMatcher Gets the singleton instance of the StringMatcher class.
UserSettingSearchPrecision SearchPrecisionScore Gets or sets the precision score used for fuzzy matching.

Methods

Method Description
FuzzyMatch(String, String) Performs a fuzzy match between two strings.
FuzzyMatch(String, String, MatchOption) Performs a fuzzy match between two strings with a specified match option.
FuzzySearch(String, String) Performs a fuzzy search between two strings.