asUpperCase

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.

  1. auto asLowerCase(Range str)
  2. auto asUpperCase(Range str)
    version(!std_uni_bootstrap)
    asUpperCase
    (
    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

Suggestion Box / Bug Report