Function CSTL_u8string_assign

Source
pub unsafe extern "C" fn CSTL_u8string_assign(
    instance: CSTL_UTF8StringRef,
    ptr: *const char8_t,
    alloc: *mut CSTL_Alloc,
) -> bool
Expand description

Replaces the contents of instance with the null-terminated string at ptr.

If the length of the string at ptr is greater than CSTL_u8string_max_size() this function has no effect and returns false, otherwise it returns true.