Function CSTL_string_insert_substr_at

Source
pub unsafe extern "C" fn CSTL_string_insert_substr_at(
    instance: CSTL_StringRef,
    off: usize,
    other: CSTL_StringCRef,
    other_off: usize,
    count: usize,
    alloc: *mut CSTL_Alloc,
) -> bool
Expand description

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

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