Function CSTL_u16string_assign_substr

Source
pub unsafe extern "C" fn CSTL_u16string_assign_substr(
    instance: CSTL_UTF16StringRef,
    other: CSTL_UTF16StringCRef,
    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_u16string_size(other)] returns false and does nothing, otherwise it returns true.