I have a question about GoToNextWordStart method on ITextSnapshotReader.
For a test string "abc", I ran the below code:
ITextSnapshotReader reader = snapshot.GetReader(0); bool gotoNextWordSuccessful = reader.GoToNextWordStart();
The results after running the above code were like this:
gotoNextWordSuccessful : true reader.Offset : 3 reader.IsAtSnapshotEnd : true reader.TokenText : null reader.Token : null
Why did GoToNextWordStart return true despite the fact that there was only one word ("abc")?
Also, why did IsAtSnapshotEnd become true, and why was Token null, even though GoToNextWordStart returned true?
API documentation says:
- this method returns true if the word start is found
- if a proper word start is not found, the reader's ITextSnapshotReader.Offset will be the end of the snapshot