The byte offset after the grapheme cluster that starts at index in text. Returns
text.count at the end, and index itself when it is already there.
next_grapheme :: (text: string, index: int) -> int
The byte offset after the grapheme cluster that starts at index in text. Returns
text.count at the end, and index itself when it is already there.
Parameters
- text: string
- index: int
Returns
- int