Function CSTL_u8string_insert_str_at

Source
pub unsafe extern "C" fn CSTL_u8string_insert_str_at(
    instance: CSTL_UTF8StringRef,
    off: usize,
    other: CSTL_UTF8StringCRef,
    alloc: *mut CSTL_Alloc,
) -> bool
Expand description

Inserts the string other at offset off in instance.

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