fr.splayce.rel.util

TrackString

case class TrackString (source: String, current: String, repl: Repl) extends Product with Serializable

A String that can keep track of the shifts in position when edited. One can obtain the Interval in the source String corresponding to any Interval in the edited version.

source

The original String

current

The current edited String

repl

The shift tracking information

Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. TrackString
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
Visibility
  1. Public
  2. All

Instance Constructors

  1. new TrackString (source: String, current: String, repl: Repl)

    source

    The original String

    current

    The current edited String

    repl

    The shift tracking information

Value Members

  1. def != (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  2. def != (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  3. def ## (): Int

    Attributes
    final
    Definition Classes
    AnyRef → Any
  4. def == (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  5. def == (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  6. def asInstanceOf [T0] : T0

    Attributes
    final
    Definition Classes
    Any
  7. def canEqual (arg0: Any): Boolean

    Definition Classes
    TrackString → Equals
  8. def clone (): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  9. val current : String

    The current edited String

  10. def edit (replacer: (String) ⇒ (String, Repl)): TrackString

    Build a new TrackString with an additional custom edit.

    Build a new TrackString with an additional custom edit. The replacer method is responsible for maintaining a resulting Repl by adding the corresponding Substs to it.

    replacer

    The edit operation: edited String + tracking info.

  11. def edit (editOp: (String, Repl)): TrackString

    Build a new TrackString with an additional edit.

    Build a new TrackString with an additional edit.

    editOp

    The edit operation: edited String + tracking info.

  12. def edit (to: String, repl: Repl): TrackString

    Build a new TrackString with an additional edit.

    Build a new TrackString with an additional edit.

    to

    The new edited String

    repl

    The tracking information for this edit

  13. def eq (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  14. def equals (arg0: Any): Boolean

    Definition Classes
    TrackString → Equals → AnyRef → Any
  15. def finalize (): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  16. def getClass (): java.lang.Class[_]

    Attributes
    final
    Definition Classes
    AnyRef → Any
  17. def hashCode (): Int

    Definition Classes
    TrackString → AnyRef → Any
  18. def isInstanceOf [T0] : Boolean

    Attributes
    final
    Definition Classes
    Any
  19. def ne (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  20. def notify (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  21. def notifyAll (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  22. def productArity : Int

    Definition Classes
    TrackString → Product
  23. def productElement (arg0: Int): Any

    Definition Classes
    TrackString → Product
  24. def productIterator : Iterator[Any]

    Definition Classes
    Product
  25. def productPrefix : String

    Definition Classes
    TrackString → Product
  26. val repl : Repl

    The shift tracking information

  27. def replaceAll (regex: Regex, replacer: (Match, Repl) ⇒ (CharSequence, Repl)): TrackString

    Edit with a Regex replacement.

    Edit with a Regex replacement. The replacer method is responsible for maintaining a resulting Repl by adding the corresponding Substs to it.

    regex

    The regex

    replacer

    The replacement method

    See also

    scala.util.matching.Regex#replaceAllIn

  28. def replaceAll (steps: (Regex, CharSequence)*): TrackString

    Edit with multiple Regex replacements.

    Edit with multiple Regex replacements. Each effective replacement (match whose replacement is different from the matched String) will append a corresponding Subst to the resulting Repl.

    steps

    The regex/replacement pairs

    See also

    scala.util.matching.Regex#replaceAllIn

  29. def replaceAll (regex: Regex, replacement: CharSequence): TrackString

    Edit with a Regex replacement.

    Edit with a Regex replacement. Each effective replacement (match whose replacement is different from the matched String) will append a corresponding Subst to the resulting Repl.

    regex

    The regex

    replacement

    The replacement String

    See also

    scala.util.matching.Regex#replaceAllIn

  30. def replaceAll (replacer: (Char) ⇒ Option[String]): TrackString

    Edit with a per-Char replacer.

    Edit with a per-Char replacer.

    replacer

    The replacement operation for each Char.

  31. def replaceFirst (regex: Regex, replacement: CharSequence): TrackString

    Edit with a Regex replacement (regex is matched only once).

    Edit with a Regex replacement (regex is matched only once). Each effective replacement (match whose replacement is different from the matched String) will append a corresponding Subst to the resulting Repl.

    regex

    The regex

    replacement

    The replacement String

    See also

    scala.util.matching.Regex#replaceFirstIn

  32. def replaceFirst (regex: Regex, replacer: (Match, Repl) ⇒ (CharSequence, Repl)): TrackString

    Edit with a Regex replacement (regex is matched only once).

    Edit with a Regex replacement (regex is matched only once). The replacer method is responsible for maintaining a resulting Repl by adding the corresponding Subst(s) to it.

    regex

    The regex

    replacer

    The replacement method

    See also

    scala.util.matching.Regex#replaceFirstIn

  33. val source : String

    The original String

  34. def srcPos (pos: Int): Interval

    The Interval in the source that corresponds to the given position in the current String.

  35. def srcPos (interval: Interval): Interval

    The Interval in the source that corresponds to the given Interval in the current String.

  36. def srcPos (m: Match): Interval

    The Interval in the source that corresponds to the given Match in the current String.

  37. def srcPos (start: Int, end: Int): Interval

    The Interval in the source that corresponds to the given Interval in the current String.

  38. def synchronized [T0] (arg0: ⇒ T0): T0

    Attributes
    final
    Definition Classes
    AnyRef
  39. val toString : String

    The current String representation

    The current String representation

    Definition Classes
    TrackString → AnyRef → Any
  40. def wait (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  41. def wait (arg0: Long, arg1: Int): Unit

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  42. def wait (arg0: Long): Unit

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()

Deprecated Value Members

  1. def productElements : Iterator[Any]

    Definition Classes
    Product
    Annotations
    @deprecated
    Deprecated

    use productIterator instead

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any