pub fn apply_doc_patch(text: &str, validated_patch: &ValidatedPatch) -> StringExpand description
Apply validated edits in reverse order to avoid index drift. Allocation: line buffer + replacement line buffers. Complexity: O(L + R + e).
pub fn apply_doc_patch(text: &str, validated_patch: &ValidatedPatch) -> StringApply validated edits in reverse order to avoid index drift. Allocation: line buffer + replacement line buffers. Complexity: O(L + R + e).