Function CSTL_string_assign_substr

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

Replaces the contents of instance 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_string_size(other)] returns false and does nothing, otherwise it returns true.