string/apply_patch_utils library

Apply patch (edit script) to string with validation (roadmap #403).

Classes

ApplyPatchConflict
Patch could not be applied; message describes the conflict or error.
ApplyPatchSuccess
Patch applied successfully; text is the result.
ApplyPatchUtils
Result of applying a patch.

Functions

applyPatch(String baseText, List<DiffOp> ops) ApplyPatchUtils
Applies an edit script ops to baseText (line-based).