Function CSTL_string_replace_char_at

Source
pub unsafe extern "C" fn CSTL_string_replace_char_at(
    instance: CSTL_StringRef,
    off: usize,
    count: usize,
    count2: usize,
    ch: c_char,
    alloc: *mut CSTL_Alloc,
) -> bool
Expand description

Replaces the substring at offset off in instance with the length given by count with count copies of the character ch.

If off is outside of the range [instance, instance + CSTL_string_size(instance)] 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.