Text_Buffer module

next_grapheme

procedure · 1 overloadsince 0.31.0Source

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

See also