The handling for graphemes is a bit dodgy at present -- we use a string text, but there is a grapheme data structure that might be better for this purpose in std.uni.
So note that the grapheme support in std.uni is a bit broken, as it apparently only supports Unicode 6.0, which is kind of old now, and doesn't really handle emoji well.
The handling for graphemes is a bit dodgy at present -- we use a string text, but there is a grapheme data structure that might be better for this purpose in std.uni.