Given an offset finds the offsets of the beginning and end of a word.
Use this function to find start offset and end offset (all offsets from the beginning of the text) of the current word. The "word" is a set of characters surrounded by delimiters defined by m_strWordDelimiters.
- Parameters
-
nCaretOffset | Specifies the current caret offset. |
nStartOffset | Out parameter. When the function returns will contain the start offset of the word. |
nEndOffset | Out parameter. When the function returns will contain the end offset of the word. |
bSkipSpaces | Not used. |
strBuffer | A reference to the text buffer to be searched for the word. |