String.opSliceAssign

Slicing assignment.

  1. ByCodeUnit!char opSliceAssign(ByCodeUnit!R value, size_t i, size_t j)
  2. ByCodeUnit!char opSliceAssign(char[] value, size_t i, size_t j)
    struct String
    @nogc nothrow pure @trusted
    opSliceAssign
    (
    const char[] value
    ,
    const size_t i
    ,
    const size_t j
    )
  3. ByCodeUnit!char opSliceAssign(char value, size_t i, size_t j)

Parameters

value char[]

Assigned character, range or string.

i size_t

Slice start.

j size_t

Slice end.

Return Value

Type: ByCodeUnit!char

Slice with the assigned part of the string.

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

Meta