Function CSTL_u16string_replace_substr_at

Source
pub unsafe extern "C" fn CSTL_u16string_replace_substr_at(
    instance: CSTL_UTF16StringRef,
    off: usize,
    count: usize,
    other: CSTL_UTF16StringCRef,
    other_off: usize,
    count2: usize,
    alloc: *mut CSTL_Alloc,
) -> bool
Expand description

Replaces the substring at offset off in instance with the length given by count with the substring at offset other_off in other with the length given by count2.

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