edit

fun edit(fromIndex: Int, toIndex: Int, vararg content: JsonTree.TreeNode)

Edits this tree with the given node.

Throws

with ErrInvalidArgument if an edit boundary resolves to an out-of-range text split offset (a document whose history carries a duplicate tree node ID), splits a UTF-16 surrogate pair, or content holds a lone surrogate half.


fun edit(fromIndex: Int, toIndex: Int, splitLevel: Int, vararg contents: JsonTree.TreeNode)

Edits this tree with the given node.

Throws

with ErrInvalidArgument if an edit boundary resolves to an out-of-range text split offset (a document whose history carries a duplicate tree node ID), splits a UTF-16 surrogate pair, or contents holds a lone surrogate half.