I would probably go for std.utf.decode [1] to get the character and its length in code units, capitalize it, and concatenate the result with the rest of the string.[1] https://dlang.org/phobos/std_utf.html#.decode
So by this I assume it is sufficient to work with dchars rather than graphemes?