functiondiffModelicaFileListings

Creates diffs of two strings corresponding to Modelica files

Information

Creates diffs of two strings (before and after) corresponding to Modelica files. The diff is specialized to handle the list API moving comments around in the file and introducing or deleting whitespace.

The output can be chosen to be a colored diff (for terminals), XML, or the final text (deletions removed).

Inputs

TypeNameDefaultDescription
Stringbefore
Stringafter
DiffFormatdiffFormatDiffFormat.color
BooleanfailOnSemanticsChangefalseDefaults to returning after instead of hard fail

Outputs

TypeNameDefaultDescription
Stringresult

Revisions

RevisionAuthorComment
1.9.3-devsjoelund.seIntroduced the API.