WordSplitBehavior Enumeration
Visual Studio 2015
Behavior to use while splitting words in string differencing.
Assembly: Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)
| Member name | Description | |
|---|---|---|
| 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.
Show: