type that is implicitly convertible to dchars
array of grapheme clusters
starting index into input[]
length of grapheme cluster
assert(graphemeStride(" ", 1) == 1); // A + combing ring above string city = "A\u030Arhus"; size_t first = graphemeStride(city, 0); assert(first == 3); //\u030A has 2 UTF-8 code units assert(city[0 .. first] == "A\u030A"); assert(city[first..$] == "rhus");
Computes the length of grapheme cluster starting at index. Both the resulting length and the index are measured in code units.