The OpenD Programming Language

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

assert(toLower('a') == 'a');
assert(toLower('A') == 'a');
assert(toLower('#') == '#');

// N.B.: Non-ASCII Unicode uppercase letters are not converted.
assert(toLower('Á') == 'Á');

Meta