org.specs2.text.StringEditDistance
See theStringEditDistance companion trait
object StringEditDistance extends StringEditDistance
Attributes
- Companion
- trait
- Graph
-
- Supertypes
- Self type
-
StringEditDistance.type
Members list
Type members
Inherited classlikes
Create separator characters
Create separator characters
Attributes
- Inherited from:
- StringEditDistance
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Value members
Inherited methods
Attributes
- Inherited from:
- StringEditDistance
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
Attributes
- Inherited from:
- StringEditDistance
Attributes
- Inherited from:
- DiffShortener
def showDiffs(operations: IndexedSeq[EditDistanceOperation[Char]], sep: String, shortenSize: Int): String
Attributes
- Inherited from:
- StringEditDistance
Value parameters
- sep
-
separators used to highlight differences. If sep is empty, then no separator is used. If sep contains one character, it is taken as the unique separator. If sep contains 2 or more characters, the first half of the characters are taken as opening separator and the second half as closing separator.
Attributes
- 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
In this article