Function yrs::ytext_chunks

source ยท
#[no_mangle]
pub unsafe extern "C" fn ytext_chunks(
    txt: *const Branch,
    txn: *const Transaction,
    chunks_len: *mut u32
) -> *mut YChunk
Expand description

Returns a collection of chunks representing pieces of YText rich text string grouped together by the same formatting rules and type. chunks_len is used to inform about a number of chunks generated this way.

Returned array needs to be eventually deallocated using ychunks_destroy.