View source code
Display the source code in std/uni.d from which this page was generated on github.
Report a bug
If you spot a problem with this page, click here to create a Bugzilla issue.
Improve this page
Quickly fork, edit online, and submit a pull request for this page. Requires a signed-in GitHub account. This works well for small changes. If you'd like to make larger changes you may want to consider using local clone.

std.uni.toLower - multiple declarations

Function toLower

If c is a Unicode uppercase character, then its lowercase equivalent is returned. Otherwise c is returned.

dchar toLower (
  dchar c
) pure nothrow @nogc @safe;

Warning

certain alphabets like German and Greek have no 1:1 upper-lower mapping. Use overload of toLower which takes full string instead.

Function toLower

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

ElementEncodingType!S[] toLower(S) (
  S s
)
if (isSomeString!S || isRandomAccessRange!S && hasLength!S && hasSlicing!S && isSomeChar!(ElementType!S));

Parameters

NameDescription
s A random access range of characters

Returns

An array with the same element type as s.

Authors

Dmitry Olshansky

License

Boost License 1.0.