Controls the presentation of a rendered set of differences. More...
Public Types | |
| enum class | LineType : std::uint8_t { HeaderOriginal , HeaderModified , Hunk , Context , Delete , Insert , NoNewline } |
| The semantic role of a line in a unified diff. More... | |
| using | LineWriter |
Public Attributes | |
| std::string_view | original_label {"a"} |
| The name given to the original input in the header. | |
| std::string_view | modified_label {"b"} |
| The name given to the modified input in the header. | |
| std::size_t | context {3} |
| The number of unchanged lines shown around each change. | |
| LineWriter | line_writer {} |
| Optional custom line writer for logical unified-diff lines. | |
Controls the presentation of a rendered set of differences.
Custom writer for rendering individual logical unified-diff lines.
The callback receives the destination stream, the line's semantic role, its textual prefix (such as "-" or "@@ "), and its content, both excluding the terminating newline. The callback is responsible for writing only the line body to the stream; Core unconditionally appends the terminating newline. Views passed to the callback are only guaranteed to remain valid for the duration of the callback.
|
strong |
The semantic role of a line in a unified diff.