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
| Type | Name | Default | Description |
|---|---|---|---|
| String | before | ||
| String | after | ||
| DiffFormat | diffFormat | DiffFormat.color | |
| Boolean | failOnSemanticsChange | false | Defaults to returning after instead of hard fail |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| String | result |
Revisions
| Revision | Author | Comment |
|---|---|---|
| 1.9.3-dev | sjoelund.se | Introduced the API. |