tcl_endOfWord
tcl_endOfWord str start
The index after the end of the first word that ends after start, or -1. tcl_startOfNextWord, tcl_startOfPreviousWord, tcl_wordBreakAfter, and tcl_wordBreakBefore find the other edges of words. A word is a run of letters, digits, and underscores.
This page also has tcl_startOfNextWord, tcl_startOfPreviousWord, tcl_wordBreakAfter, tcl_wordBreakBefore.
Examples
A click on an example runs it in the shell of the page.
tcl_endOfWord "buy milk" 0:3tcl_startOfNextWord "buy milk" 0:4
Facts
- Capability: none.
- Compute cost: one compute unit for the call, and more for the commands that it runs.