Function tor_consdiff::apply_diff_trivial
source · [−]pub fn apply_diff_trivial<'a>(
input: &'a str,
diff: &'a str
) -> Result<DiffResult<'a>, Error>
Expand description
Apply a given diff to an input text, and return the result from applying that diff.
This is a slow version, for testing and correctness checking. It uses an O(n) operation to apply diffs, and therefore runs in O(n^2) time.