Text_Buffer module

next_word

procedure · 1 overloadsince 0.31.0Source

The byte offset where the word to the right of index ends: spaces are skipped, then a run of word characters or of punctuation. Stops at the end of the text; line breaks are the caller's.

next_word :: (text: string, index: int) -> int

The byte offset where the word to the right of index ends: spaces are skipped, then a run of word characters or of punctuation. Stops at the end of the text; line breaks are the caller's.

Parameters

text: string
index: int

Returns

int

See also