Function graphemeIterator
- grapheme
Iterator (str): IterableIterator<string> Parameters
- str: string
String to split.
Returns IterableIterator<string>
An iterator returning grapheme clusters.
- str: string
String to split.
An iterator returning grapheme clusters.
Provides an iterator for tokenizing a string by grapheme clusters.
Note: This is a naive implementation that fully parses the string then returns the iterator over parsed clusters. A future implementation will implement an immediate mode parser returning cluster by cluster as the string is parsed.