TextSegment::Grapheme::Cluster
Unicode extended grapheme cluster. Graphemes Iterator will return an instance of this struct to return information about specific grapheme cluster.
Instance methods
positions
returns the interval of the current grapheme as byte positions into the
original string. The first returned value "from" indexes the first byte
and the second retured value "to" indexes the first byte that is not included
anumore, i.e. str[from...to] is the current grapheme cluster of
the original string "str".
str
returns a substring of the original string which corresponds to the current grapheme cluster