文件名称:dissimilar:基于Google的diff-match-patch具有语义清除功能的Diff库
文件大小:33KB
文件格式:ZIP
更新时间:2024-03-28 14:14:48
Rust
差异:具有语义清除功能的差异库 该库是到Rust的Diff组件的端口。 diff实现基于但包括一些清除,以通过排除可能是巧合的共同点来提高人类的可读性。 Diff Match Patch最初建于2006年,旨在为Google文档提供支持。 [ dependencies ] dissimilar = " 1.0 " 编译器支持:需要rustc 1.31+ 界面 这是Rust实现的整个API。 它对借用的字符串进行操作,并且diff算法的返回值是指向这些输入字符串的切片的大块向量。 pub enum Chunk < ' a > { Equal (& ' a str ), Delete (& ' a str ), Insert (& ' a str ), } pub fn diff (text1: & str , text2: & str ) -> Vec <C
【文件预览】:
dissimilar-master
----LICENSE-MIT(1023B)
----.clippy.toml(16B)
----Cargo.toml(482B)
----.github()
--------workflows()
----src()
--------find.rs(9KB)
--------range.rs(4KB)
--------tests.rs(16KB)
--------lib.rs(34KB)
----LICENSE-APACHE(11KB)
----README.md(3KB)
----tests()
--------test.rs(696B)
----.gitignore(19B)
----benches()
--------document2.txt(12KB)
--------bench.rs(345B)
--------document1.txt(13KB)