delete

fun delete(fromIndex: Int, toIndex: Int): Pair<Int, Int>?

Deletes the text in the given range.

Throws

with dev.yorkie.util.YorkieException.Code.ErrInvalidArgument when fromIndex/toIndex splits a UTF-16 surrogate pair -- fails the whole dev.yorkie.document.Document.updateAsync call (this delegates to edit).