Skip to main content

DiffPatch

Type​

function

Summary​

Patch a string with a previously computed diff.

Syntax​

DiffPatch(<pSource>,<pDiff>)

Description​

Apply the diff to the source string, returning an updated string with the diff changes applied.

Parameters​

NameTypeDescription

pSource

The original string

pDiff

The diff representing changes to apply to pSource

Examples​

Value​

NameTypeDescription

return

An updated version of pSource with the changes from pDiff applied.