asLowerCase

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.

version(!std_uni_bootstrap)
asLowerCase
(
Range
)
(
Range str
)

Parameters

str Range

string or range of characters

Return Value

Type: auto

an input range of dchars

Examples

import std.algorithm.comparison : equal;

assert("hEllo".asUpperCase.equal("HELLO"));

See Also

Meta