first-word-from ( start str -- i ) (original) (raw)

first-word-from ( start str -- i )
Word and grapheme breaks

Prev: first-word ( str -- i )
Next: last-word ( str -- i )

Vocabulary
unicode

Inputs

start index
str a string

Outputs

i index

Word description
Finds the index of the end of the first word in the string, starting from the given index.

Definition

USING: kernel math sequences ;

IN: unicode

: first-word-from ( start str -- i )
over tail-slice first-word + ;