Skip to content

Reference

phil/text-diff
TypeKindRole
Phil\TextDiff\TextDifffinal readonly classThe library in one object: texts and documents compared, differences as HTML
Phil\TextDiff\TokenizerenumHow a text is cut into tokens: words, lines, paragraphs, HTML
Phil\TextDiff\Difffinal readonly classThe operations of a difference, both texts, the change list
Phil\TextDiff\Operationfinal readonly classA run of tokens kept, deleted or inserted
Phil\TextDiff\OperationKindenumEqual, delete or insert
Phil\TextDiff\Changefinal readonly classOne change, its old and new text and its offsets
Phil\TextDiff\ChangeKindenumInsertion, deletion or replacement
Phil\TextDiff\HtmlFormatterfinal readonly classA difference as HTML with <ins> and <del>
Phil\TextDiff\Myersfinal readonly class, internalMyers' algorithm over two lists of tokens, bounded
Phil\TextDiff\Ujo\DocumentDifffinal readonly classEvery block of two compared documents
Phil\TextDiff\Ujo\BlockChangefinal readonly classOne block: what happened to it, where, and its field changes
Phil\TextDiff\Ujo\BlockChangeKindenumUnchanged, changed, added, removed or moved
Phil\TextDiff\Ujo\FieldChangefinal readonly classOne value of a block that changed, by path
Phil\TextDiff\Ujo\DocumentDifferfinal readonly class, internalBlocks paired by identifier, level by level, and compared value by value
Phil\TextDiff\Ujo\DocumentFormatterfinal readonly class, internalA document difference as HTML through phil/ujo
Phil\TextDiff\Exception\TextDiffExceptioninterfaceEvery exception of the library
Phil\TextDiff\Exception\InvalidTextfinal classA text that is not valid UTF-8
Phil\TextDiff\Exception\InvalidConfigurationfinal classA negative bound of edits