pub fn apply(
text: &str,
op: &Op,
matcher: &Matcher,
range: Option<RangeSpec>,
context_lines: usize,
) -> Result<EngineOutput, RipsedError>Expand description
Apply a single operation to a text buffer.
Returns the modified text and a structured diff.
If dry_run is true, the text is computed but flagged as preview-only.