Luna::BasicString::replace
void replace(usize pos, usize count, const BasicString &str)
Replaces characters in range [pos
, pos + count
) with characters of str
.
Parameters
-
in pos
The index of the first character to replace.
-
in count
The number of characters to replace. If
pos + count
is greater thanthis->size()
,count
will be clamped tothis->size() - pos
. -
in str
The string to use for replacement.
Valid Usage
pos
must not be greater thanthis->size()
.