- Companion:
- class
Type members
Inherited classlikes
Value members
Inherited methods
apply edit distance functions on strings split on newlines so that there are no memory issues
apply edit distance functions on strings split on newlines so that there are no memory issues
- Inherited from:
- StringEditDistance
def shorten(string: String, firstDelimiter: String, secondDelimiter: String, shortenSize: Int): String
- Inherited from:
- DiffShortener
def shortenTokens(tokens: List[Token], firstDelimiter: Delimiter, secondDelimiter: Delimiter, shortenSize: Int): List[Token]
- Inherited from:
- DiffShortener
def showDiffs(operations: IndexedSeq[EditDistanceOperation[Char]], separators: String, shortenSize: Int): List[Token]
- Inherited from:
- StringEditDistance
- Value parameters:
- separators
separators used to highlight differences. If sep is empty, then no delimiter is used. If sep contains one character, it is taken as the unique delimiter. If sep contains 2 or more characters, the first half of the characters are taken as opening delimiter and the second half as closing delimiter.
- Returns:
a (String, String) displaying the differences between each input strings. The used separators are specified by the caller. The string is shortened before and after differences if necessary.
- Inherited from:
- StringEditDistance
Extensions
Inherited extensions
extension (tokens: List[Token])