WordSplitBehavior Enumeration

 

Behavior to use while splitting words in string differencing.

Namespace:   Microsoft.VisualStudio.Text.Differencing
Assembly:  Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)

public enum WordSplitBehavior

Member nameDescription
CharacterClass

Split words by character class.

Default

Split words by CharacterClass.

LanguageAppropriate

Split the text into language-appropriate words.

When used in conjunction with the default T:Microsoft.VisualStudio.Text.Differencing.IHierarchicalStringDifferenceService, this value is the same as WhiteSpaceAndPunctuation. When used in conjunction with an ITextDifferencingService, the behavior is controlled by the implementation.

WhiteSpace

Split the text into words by whitespace only.

WhiteSpaceAndPunctuation

Split the text into words by whitespace and punctuation/symbols.

Word split logic uses the following character classes: 1) whitespace and control characters, 2) numbers/digits, 3) punctuation/symbols, 4) letters.

Return to top
Show: