Function CSTL_u8string_insert_char

Source
pub unsafe extern "C" fn CSTL_u8string_insert_char(
    instance: CSTL_UTF8StringRef,
    where_: *const char8_t,
    count: usize,
    ch: char8_t,
    alloc: *mut CSTL_Alloc,
) -> *mut char8_t
Expand description

Inserts count copies of the character ch at the pointer where in instance.

If the length of the resulting string is greater than CSTL_u8string_max_size() this function has no effect and returns NULL, otherwise it returns a pointer to the first inserted character.

The pointer where must be valid and dereferenceable on instance.