1/nektro/leven v0.6
Measure the difference between two slices using the Levenshtein distance algorithm
zig-leven
Measure the difference between two slices using the Levenshtein distance algorithm
Adapted from https://github.com/sindresorhus/leven
Built With
- Zig master
- https://github.com/ziglang/zig
- Zigmod package manager
- https://github.com/nektro/zigmod
Install
zigmod aq add 1/nektro/leven
Usage
pub fn leven(comptime T: type, alloc: *std.mem.Allocator, a: []const T, b: []const T, max: ?usize) !usize
Future
TODO Unicode support for strings
License
MIT
Package Contents
- .gitattributes
- licenses.txt
- zigmod.lock
- LICENSE
- build.zig
- src/lib.zig
- src/main.zig
- README.md
- zig.mod
- .gitignore
- zigmod.sum
History
Published On | Tree @ Commit | Size | |
---|---|---|---|
v0.7 | Sat, 07 Sep 2024 23:12:57 UTC | Tree | 6.359 KB |
v0.6 | Wed, 05 Jun 2024 08:39:28 UTC | Tree | 6.338 KB |
v0.5 | Sat, 04 May 2024 20:20:48 UTC | Tree | 6.472 KB |
v0.4 | Mon, 20 Mar 2023 18:39:58 UTC | Tree | 6.388 KB |
v0.3 | Fri, 24 Dec 2021 19:43:04 UTC | Tree | 6.373 KB |
v0.2 | Wed, 28 Jul 2021 06:48:43 UTC | Tree | 6.374 KB |
v0.1 | Tue, 27 Jul 2021 07:01:13 UTC | Tree | 6.224 KB |