Partager via


PatternMatchKind Enum

Definition

This enum is NOT ordered. Sorting based on the PatternMatchKind is performed in PatternMatch and is subject to change. Additional entries can be added at the bottom of this enumeration.

public enum class PatternMatchKind
public enum PatternMatchKind
type PatternMatchKind = 
Public Enum PatternMatchKind
Inheritance
PatternMatchKind

Fields

Name Value Description
Exact 0

The candidate string matched the pattern exactly.

Prefix 1

The pattern was a prefix of the candidate string.

Substring 2

The pattern was a substring of the candidate string, but in a way that wasn't a CamelCase match.

CamelCaseExact 3

All camel-humps in the pattern matched a camel-hump in the candidate. All camel-humps in the candidate were matched by a camel-hump in the pattern.

Example: "CFPS" matching "CodeFixProviderService" Example: "cfps" matching "CodeFixProviderService" Example: "CoFiPrSe" matching "CodeFixProviderService"

CamelCasePrefix 4

All camel-humps in the pattern matched a camel-hump in the candidate. The first camel-hump in the pattern matched the first camel-hump in the candidate. There was no gap in the camel- humps in the candidate that were matched.

Example: "CFP" matching "CodeFixProviderService" Example: "cfp" matching "CodeFixProviderService" Example: "CoFiPRo" matching "CodeFixProviderService"

CamelCaseNonContiguousPrefix 5

All camel-humps in the pattern matched a camel-hump in the candidate. The first camel-hump in the pattern matched the first camel-hump in the candidate. There was at least one gap in the camel-humps in the candidate that were matched.

Example: "CP" matching "CodeFixProviderService" Example: "cp" matching "CodeFixProviderService" Example: "CoProv" matching "CodeFixProviderService"

CamelCaseSubstring 6

All camel-humps in the pattern matched a camel-hump in the candidate. The first camel-hump in the pattern did not match the first camel-hump in the pattern. There was no gap in the camel- humps in the candidate that were matched.

Example: "FP" matching "CodeFixProviderService" Example: "fp" matching "CodeFixProviderService" Example: "FixPro" matching "CodeFixProviderService"

CamelCaseNonContiguousSubstring 7

All camel-humps in the pattern matched a camel-hump in the candidate. The first camel-hump in the pattern did not match the first camel-hump in the pattern. There was at least one gap in the camel-humps in the candidate that were matched.

Example: "FS" matching "CodeFixProviderService" Example: "fs" matching "CodeFixProviderService" Example: "FixSer" matching "CodeFixProviderService"

Fuzzy 8

The pattern matches the candidate in a fuzzy manner. Fuzzy matching allows for a certain amount of misspellings, missing words, etc.

Applies to