İçeriğe geç
PHP Ecosystem
Explore

Diff API reference

Bu içerik henüz dilinizde mevcut değil.

API reference › Diff

Classes, interfaces, traits and enums of PHPForge\Diff, generated from the PHPDoc of php-forge/diff at main. Machine-readable catalog: diff.json.

ClassSummary
DiffLine final readonlyRepresents a single line of an edit script produced by DifferInterface.
LineDiffer finalComputes the line edit scripts of git diff with default settings, except on inputs that reach Git’s cost limit.
UnifiedDiffRenderer final readonlyRenders the output of git diff --unified=<context>, without its diff --git and index lines, for two texts compared after normalizing their line endings to "\n".
InterfaceSummary
DifferInterfaceComputes a line-by-line edit script between two multi-line strings.
EnumSummary
DiffOpRepresents the operation applied to a single line of an edit script produced by DifferInterface.
IndentHeuristicHolds the tuning values of Git’s indent heuristic, which LineDiffer uses to choose where a slidable group of changed lines is placed.
LineMatchRepresents how often the content of a line occurs in the other input, as Git’s xdl_cleanup_records() classifies the lines before the alignment of LineDiffer.
MultimatchCleanupHolds the limits of Git’s cleanup of multi-matched lines, which LineDiffer applies before the alignment so that lines repeated all over the other input do not anchor it.