[]
Extends a CharRange over whitespace.
public static CharRange ExpandOverWhitespace(string text, CharRange error)
Type | Name | Description |
---|---|---|
string | text | String that contains the CharRange. |
CharRange | error | CharRange that will be expanded. |
Type | Description |
---|---|
CharRange | Expanded CharRange. |
The method returns a new CharRange object that includes the original error
plus any whitespace that immediately follows it. If there is no whitespace after the original error
,
then the returned value is extended to include any whitespace that precedes the original error
.
This method is used to extend editor selections before deleting duplicate words.