struct C0::Diff::Section

Overview

A section is a sequential pattern of units (anchors + substitutions).

Defined in:

c0/diff.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(units : Array(C0::Diff::Sub | Slice(UInt8))) #

[View source]

Instance Method Detail

def replacement : Bytes #

Build the replacement (new text concatenated).


[View source]
def search_pattern : Bytes #

Build the search pattern (old text concatenated).


[View source]
def units : Array(Unit) #

[View source]