Function CSTL_wstring_replace_substr

Source
pub unsafe extern "C" fn CSTL_wstring_replace_substr(
    instance: CSTL_WideStringRef,
    first: *const wchar_t,
    last: *const wchar_t,
    other: CSTL_WideStringCRef,
    other_off: usize,
    count: usize,
    alloc: *mut CSTL_Alloc,
) -> bool
Expand description

Replaces the characters in the range [first, last) with the substring at offset other_off in other with the length given by count.

If other_off is outside of the range [other, other + CSTL_wstring_size(other)] or if the length of the resulting string is greater than CSTL_wstring_max_size() this function has no effect and returns false, otherwise it returns true.

If first == last, no operation is performed.

The range [first, last) must be valid and dereferenceable on instance.