The original String
The current edited String
The shift tracking information
The current edited String
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 Subst
s to it.
The edit operation: edited String + tracking info.
Build a new TrackString with an additional edit.
Build a new TrackString with an additional edit.
The edit operation: edited String + tracking info.
Build a new TrackString with an additional edit.
Build a new TrackString with an additional edit.
The new edited String
The tracking information for this edit
The shift tracking information
Edit with a Regex replacement.
Edit with a Regex replacement.
The replacer
method is responsible for maintaining a resulting Repl
by adding the corresponding Subst
s to it.
The regex
The replacement method
scala.util.matching.Regex#replaceAllIn
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
.
The regex/replacement pairs
scala.util.matching.Regex#replaceAllIn
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
.
The regex
The replacement String
scala.util.matching.Regex#replaceAllIn
Edit with a per-Char replacer.
Edit with a per-Char replacer.
The replacement operation for each Char.
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
.
The regex
The replacement String
scala.util.matching.Regex#replaceFirstIn
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.
The regex
The replacement method
scala.util.matching.Regex#replaceFirstIn
The original String
The Interval in the source that corresponds to the given position in the current String.
The Interval in the source that corresponds to the given Interval in the current String.
The Interval in the source that corresponds to the given Match in the current String.
The Interval in the source that corresponds to the given Interval in the current String.
The current String representation
The current String representation
A String that can keep track of the shifts in position when edited. One can obtain the
Interval
in the source String corresponding to anyInterval
in the edited version.The original String
The current edited String
The shift tracking information