Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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. |
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Windows developer