Function CSTL_u16string_resize

Source
pub unsafe extern "C" fn CSTL_u16string_resize(
    instance: CSTL_UTF16StringRef,
    new_size: usize,
    ch: char16_t,
    alloc: *mut CSTL_Alloc,
) -> bool
Expand description

Resizes the string to contain new_size characters, appending ch if current size is less than new_size.

If new_size is greater than CSTL_u16string_max_size() this function has no effect and returns false, otherwise it returns true.