String.opSliceAssign

Slicing assignment.

  1. ByCodeUnit!char opSliceAssign(ByCodeUnit!R value, size_t i, size_t j)
    struct String
    opSliceAssign
    (
    R
    )
    (,
    const size_t i
    ,
    const size_t j
    )
    if (
    is(Unqual!R == char)
    )
  2. ByCodeUnit!char opSliceAssign(char[] value, size_t i, size_t j)
  3. ByCodeUnit!char opSliceAssign(char value, size_t i, size_t j)

Parameters

R

$(D_KEYWORD char).

value ByCodeUnit!R

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