DiffCompare |
Type | function |
Dictionary | library.diff |
Library | Unified Diff Library |
Syntax | DiffCompare(<pFrom>,<pTo>,<pContext>)
|
Associations | com.livecode.library.diff |
Summary | Produce a diff representing the changes between two text strings
|
Parameters | Name | Type | Description |
---|
pFrom | | The original source string. The produced diff will describe how to transform this string.
|
pTo | | The updated source string. This will be compared to pFrom to produce the output diff.
|
pContext | | The number of unchanged lines to include before / after each change in the diff.
|
|
Example |
|
Values | Name | Type | Description |
---|
return | | A string representing the changes between pFrom and pTo in unified diff format.
|
|
Description | Compare two strings, producing a string representing the changes between them in unified-diff format.
|