patch_apply method
Merge a set of patches onto the text. Return a patched text, as well as an array of true/false values indicating which patches were applied.
patches
is a List of Patch objectstext
is the old text.
Returns a two element List, containing the new text and a List of bool values.
Implementation
List patch_apply(List<p.Patch> patches, String text) {
return p.patchApply(patches, text,
diffTimeout: diffTimeout,
deleteThreshold: patchDeleteThreshold,
margin: patchMargin);
}