authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2025-05-21 13:31:07 -07:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2025-05-21 13:31:07 -07:00
logabcde0e877df670f96671bdca5b81b0e809df0d4
treee4d054837396be88806cb1e346cfec540b2dcc8a
parent1c0e475b056ccc6a343187702ee4f3dc415e07cb

ziginfra README sync


1 files changed, 8 insertions(+), 14 deletions(-)

README.md+8-14
...@@ -1,25 +1,19 @@...@@ -1,25 +1,19 @@
1# zig-leven1# zig-leven
22
3![loc](https://sloc.xyz/github/nektro/zig-leven)
4[![license](https://img.shields.io/github/license/nektro/zig-leven.svg)](https://github.com/nektro/zig-leven/blob/master/LICENSE)
5[![nektro @ github sponsors](https://img.shields.io/badge/sponsors-nektro-purple?logo=github)](https://github.com/sponsors/nektro)
6[![Zig](https://img.shields.io/badge/Zig-0.14-f7a41d)](https://ziglang.org/)
7[![Zigmod](https://img.shields.io/badge/Zigmod-latest-f7a41d)](https://github.com/nektro/zigmod)
8
3Measure the difference between two slices using the Levenshtein distance algorithm9Measure the difference between two slices using the Levenshtein distance algorithm
410
5Adapted from https://github.com/sindresorhus/leven11Adapted from https://github.com/sindresorhus/leven
612
7## Built With
8- Zig master
9 - https://github.com/ziglang/zig
10- Zigmod package manager
11 - https://github.com/nektro/zigmod
12
13## Install
14```
15zigmod aq add 1/nektro/leven
16```
17
18## Usage13## Usage
14
19`pub fn leven(comptime T: type, alloc: *std.mem.Allocator, a: []const T, b: []const T, max: ?usize) !usize`15`pub fn leven(comptime T: type, alloc: *std.mem.Allocator, a: []const T, b: []const T, max: ?usize) !usize`
2016
21## Future17## Future
22TODO Unicode support for strings
2318
24## License19TODO Unicode support for strings
25MIT