String.insertBack - multiple declarations

Function String.insertBack

Inserts a single character at the end of the string.

ulong insertBack (
  char chr
) pure nothrow @nogc @trusted;

ulong insertBack (
  const(wchar) chr
) pure @nogc @trusted;

ulong insertBack (
  const(dchar) chr
) pure @nogc @trusted;

Parameters

NameDescription
chr The character should be inserted.

Returns

The number of bytes inserted (1).

Function String.insertBack

Inserts a stringish range at the end of the string.

size_t insertBack(R) (
  R str
) @trusted
if (!isInfinite!R && isInputRange!R && is(Unqual!(ElementType!R) == char));

size_t insertBack(R) (
  R str
) @trusted
if (!isInfinite!R && isInputRange!R && is(Unqual!(ElementType!R) == wchar));

size_t insertBack(R) (
  R str
) @trusted
if (!isInfinite!R && isInputRange!R && is(Unqual!(ElementType!R) == dchar));

Parameters

NameDescription
R Type of the inserted string.
str String should be inserted.

Returns

The number of bytes inserted.