Handbook
Glossary
first-grapheme-from ( start str -- i )
Word and grapheme breaks
Prev:
first-grapheme ( entire-str start -- i )
Next:
last-grapheme ( str -- i )
Vocabulary
unicode
Inputs
start
an index
str
a
string
Outputs
i
an index
Word description
Finds the length of the first grapheme of the string, starting from the given index. This can be used repeatedly to efficiently traverse the graphemes of the string, using slices.
Definition
USING:
math
;
IN:
unicode
::
first-grapheme-from
( start str -- i )
str start
first-grapheme
start
+
;