Converting a character to upper case in string

NX nightmarex1337 at hotmail.com
Fri Sep 21 13:32:54 UTC 2018


On Friday, 21 September 2018 at 12:34:12 UTC, Laurent Tréguier 
wrote:
> 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?


More information about the Digitalmars-d-learn mailing list