Compute a semantic diff between two byte slices. This is the main entry point for semantic diffing. It: 1. Splits content into lines 2. Computes line-level diff 3. For modified lines, computes token-level diff # Arguments `old` - The original content `new` - The modified content # Returns A [`SemanticDiff`] with line and token level changes. # Example ```rust use atomic_core::diff::semantic
(old: &'a [u8], new: &'a [u8])
| 30 | /// assert!(diff.has_changes()); |
| 31 | /// ``` |
| 32 | pub fn semantic_diff<'a>(old: &'a [u8], new: &'a [u8]) -> SemanticDiff<'a> { |
| 33 | semantic_diff_with_config(old, new, &SemanticDiffConfig::default()) |
| 34 | } |
| 35 | |
| 36 | /// Compute a semantic diff with custom configuration. |
| 37 | /// |