Convert an input range or a string to upper or lower case.
Does not allocate memory. Characters in UTF-8 or UTF-16 format that cannot be decoded are treated as std.utf.replacementDchar.
string or range of characters
an input range of dchars
import std.algorithm.comparison : equal; assert("hEllo".asUpperCase.equal("HELLO"));
toUpper, toLower
See Implementation
Convert an input range or a string to upper or lower case.
Does not allocate memory. Characters in UTF-8 or UTF-16 format that cannot be decoded are treated as std.utf.replacementDchar.