toUpper

Allocates a new array which is identical to s except that all of its characters are converted to uppercase (by performing Unicode uppercase mapping). If none of s characters were affected, then s itself is returned if s is a string-like type.

  1. dchar toUpper(dchar c)
  2. ElementEncodingType!S[] toUpper(S s)
    version(!std_uni_bootstrap)
    @trusted
    toUpper
    (
    S
    )
    (
    return scope S s
    )
  3. ElementEncodingType!S[] toUpper(S s)

Parameters

s S

A random access range of characters

Return Value

Type: ElementEncodingType!S[]

An new array with the same element type as s.

Meta