Function yrs::ytext_remove_range [−][src]
#[no_mangle]
pub unsafe extern "C" fn ytext_remove_range(
txt: *const Text,
txn: *mut Transaction,
index: c_int,
length: c_int
)
Expand description
Removes a range of characters, starting a a given index
. This range must fit within the bounds
of a current YText
, otherwise this function call will fail.
An index
value must be between 0 and the length of a YText
(exclusive, accordingly to
ytext_len return value).
A length
must be lower or equal number of bytes (internally YText
uses UTF-8 encoding) from
index
position to the end of of the string.