module

Similar::Utils

Class methods

diff_chars(alg : Algorithm, old : String, new : String) : Array(Tuple(ChangeTag, String))

Diff characters for strings.

Source
diff_chars(alg : Algorithm, old : Bytes, new : Bytes) : Array(Tuple(ChangeTag, BytesWrapper))

Diff bytes for bytes.

Source
diff_graphemes(alg : Algorithm, old : String, new : String) : Array(Tuple(ChangeTag, String))

Diff graphemes for strings.

Source
diff_lines(alg : Algorithm, old : String, new : String) : Array(Tuple(ChangeTag, String))

Diff lines for strings.

Source
diff_lines(alg : Algorithm, old : Bytes, new : Bytes) : Array(Tuple(ChangeTag, BytesWrapper))

Diff lines for bytes.

Source
diff_slices(alg : Algorithm, old : Array(T), new : Array(T)) : Array(Tuple(ChangeTag, Array(T))) forall T

Shortcut for diffing two slices.

Source
diff_unicode_words(alg : Algorithm, old : String, new : String) : Array(Tuple(ChangeTag, String))

Diff unicode words for strings.

Source
diff_words(alg : Algorithm, old : String, new : String) : Array(Tuple(ChangeTag, String))

Diff words for strings.

Source
diff_words(alg : Algorithm, old : Bytes, new : Bytes) : Array(Tuple(ChangeTag, BytesWrapper))

Diff words for bytes.

Source

Nested types