Function String.opSliceAssign

Slicing assignment.

ByCodeUnit!char opSliceAssign(R) (
  ByCodeUnit!R value,
  const size_t i,
  const size_t j
)
if (is(Unqual!R == char));

ByCodeUnit!(char) opSliceAssign (
  const(char[]) value,
  const(ulong) i,
  const(ulong) j
) pure nothrow @nogc @trusted;

ByCodeUnit!(char) opSliceAssign (
  const(char) value,
  const(ulong) i,
  const(ulong) j
) pure nothrow @nogc @trusted;

Parameters

NameDescription
R char.
value Assigned character, range or string.
i Slice start.
j Slice end.

Returns

Slice with the assigned part of the string.

Precondition

i <= j && j <= length && value.length == j - i