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