Text_Buffer module

previous_grapheme

procedure · 1 overloadsince 0.31.0Source

The byte offset where the grapheme cluster that ends at index starts. Returns 0 at the start.

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

The byte offset where the grapheme cluster that ends at index starts. Returns 0 at the start.

Parameters

text: string
index: int

Returns

int

See also