class

Krikri::Difflib::SequenceMatcher

Inherits Reference < Object

Constructors

new(a : Array(String), b : Array(String))
Source

Instance methods

find_longest_match(alo : Int32, ahi : Int32, blo : Int32, bhi : Int32) : Match

difflib.SequenceMatcher.find_longest_match. ansible passes no isjunk, so the junk-specific extension steps difflib runs around this one collapse into the plain match extension kept here.

Source
grouped_opcodes(n : Int32 = 3) : Array(Array(Opcode))

difflib.SequenceMatcher.get_grouped_opcodes: the opcodes cut into hunks of n context lines, the leading/trailing equal runs trimmed and any single-equal-run group dropped.

Source
matching_blocks

difflib.SequenceMatcher.get_matching_blocks, including its coalescing of adjacent blocks and the trailing empty sentinel.

Source
opcodes

difflib.SequenceMatcher.get_opcodes.

Source