StringSearch.shiftString

Shifts "length" characters inside "string" from "src_pos" to "dst_pos". This effectively does the same thing as

string[src_pos .. src_pos + length] =  string[dst_pos .. dst_pos + length];

but allows overlapping ranges.

struct StringSearch(bool wide_char = false)
static
shiftString
(
ref Char[] str
,
size_t dst_pos
,
size_t src_pos
,
size_t length
)

Parameters

str Char[]

string to process

dst_pos size_t

destination start position (index)

src_pos size_t

source start position (index)

length size_t

number of array elements to shift

Meta