Provides the default implementation of an object that finds word breaks within an IText
- Inheritance:
- object object
- Implements:
-
IWord
Break Finder
Remarks
Instances of this object can be registered with an ISyntax
Constructors
DefaultWordBreakFinder()
Initializes a new instance of the DefaultWordBreakFinder
class.
Remarks
The default constructor initializes all fields to their default values.
Properties
DefaultWordContainsAdditionalCharacters
Gets the default Char
Property Value
- Char
Class : The default Char
Class for the WordContains property.Additional Characters
DefaultWordStandaloneCharacters
Gets the default Char
Property Value
- Char
Class : The default Char
Class for the WordStandalone property.Characters
WordContainsAdditionalCharacters
Gets or sets the set of additional characters that can constitute the inside of a word, other than letters and digits.
Property Value
- Char
Class : The set of additional characters that can constitute the inside of a word, other than letters and digits.
Remarks
The default value is the _
character.
WordStandaloneCharacters
Gets or sets the set of characters that are intended to be single character words.
Property Value
- Char
Class : The set of characters that are intended to be single character words.
Remarks
The default value is the set of .,()<>[]{}?!/:;'"
characters.
Methods
FindCurrentWordEnd(TextSnapshotOffset)
Returns the IText
Parameter | Type | Description |
---|---|---|
snapshotOffset | Text |
The Text |
Returns
- int:
The IText
Snapshot offset of the word end character that occurs at or after the specified start offset.
FindCurrentWordStart(TextSnapshotOffset)
Returns the IText
Parameter | Type | Description |
---|---|---|
snapshotOffset | Text |
The Text |
Returns
- int:
The IText
Snapshot offset of the word start character that occurs at or before the specified start offset.
FindNextWordStart(TextSnapshotOffset)
Returns the IText
Parameter | Type | Description |
---|---|---|
snapshotOffset | Text |
The Text |
Returns
- int:
The IText
Snapshot offset of the word start character that occurs after the specified start offset.
FindPreviousWordStart(TextSnapshotOffset)
Returns the IText
Parameter | Type | Description |
---|---|---|
snapshotOffset | Text |
The Text |
Returns
- int:
The IText
Snapshot offset of the word start character that occurs before the specified start offset.