Function CSTL_u32string_replace_str

Source
pub unsafe extern "C" fn CSTL_u32string_replace_str(
    instance: CSTL_UTF32StringRef,
    first: *const char32_t,
    last: *const char32_t,
    other: CSTL_UTF32StringCRef,
    alloc: *mut CSTL_Alloc,
) -> bool
Expand description

Replaces the characters in the range [first, last) with the string other.

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

If first == last, no operation is performed.

The range [first, last) must be valid and dereferenceable on instance.