code-and-commits/patch-apply

生成并应用于字符串的diff

0.1.0 2020-10-12 18:24 UTC

This package is auto-updated.

Last update: 2024-09-13 04:01:33 UTC


README

以程序方式将diff文件应用于文本

用法

$patcher = new PatchApply\Patcher();
$output = $patcher->apply($input, $diff);