toLower

Converts an ASCII letter to lowercase.

toLower
(
C
)
(
C c
)
if (
is(C : dchar)
)

Return Value

Type: auto

The corresponding lowercase letter, if c is an uppercase ASCII character, otherwise c itself.

Examples

1 assert(toLower('a') == 'a');
2 assert(toLower('A') == 'a');
3 assert(toLower('#') == '#');
4 
5 // N.B.: Non-ASCII Unicode uppercase letters are not converted.
6 assert(toLower('Á') == 'Á');

Meta