Function yrs::yxmltext_remove_range[][src]

#[no_mangle]
pub unsafe extern "C" fn yxmltext_remove_range(
    txt: *const XmlText,
    txn: *mut Transaction,
    idx: c_int,
    len: c_int
)
Expand description

Removes a range of characters, starting a a given index. This range must fit within the bounds of a current YXmlText, otherwise this function call will fail.

An index value must be between 0 and the length of a YXmlText (exclusive, accordingly to yxmltext_len return value).

A length must be lower or equal number of bytes (internally YXmlText uses UTF-8 encoding) from index position to the end of of the string.