module watt.text.diff

Functions that output the differences between two strings.

Code Map

//! Functions that output the differences between two strings.
module watt.text.diff;


//! Print the difference between two strings, line-by-line, to stdout.
fn diff(a: const(char)[], b: const(char)[]) { }
fn diff(a: const(char)[], b: const(char)[])

Print the difference between two strings, line-by-line, to stdout.

Parameters

a

The first string to compare.

b

The second string to compare.

fn lcs(a: const(char)[][], b: const(char)[][], c: size_t[], w: size_t)

Generate a longest common substring (LCS) matrix.

c contains the values, w contains the width of the matrix.