Compute word-level diff between two strings. Convenience function for string inputs. # Example ```rust use atomic_core::diff::word::word_diff_str; let result = word_diff_str("hello world", "hello there"); assert!(result.has_changes()); ```
(old: &'a str, new: &'a str)
| 850 | /// assert!(result.has_changes()); |
| 851 | /// ``` |
| 852 | pub fn word_diff_str<'a>(old: &'a str, new: &'a str) -> WordDiffResult<'a> { |
| 853 | word_diff(old.as_bytes(), new.as_bytes()) |
| 854 | } |
| 855 | |
| 856 | // Tests |
| 857 |