From abcde0e877df670f96671bdca5b81b0e809df0d4 Mon Sep 17 00:00:00 2001 From: Meghan Denny Date: Wed, 21 May 2025 13:31:07 -0700 Subject: [PATCH] ziginfra README sync --- README.md | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index f0e134bbf67b1c49d978cc4f053444fe8311cd7b..5d6d32631aa8dcddc030e269dca13902bcca46b4 100644 --- a/README.md +++ b/README.md @@ -1,25 +1,19 @@ # zig-leven +![loc](https://sloc.xyz/github/nektro/zig-leven) +[![license](https://img.shields.io/github/license/nektro/zig-leven.svg)](https://github.com/nektro/zig-leven/blob/master/LICENSE) +[![nektro @ github sponsors](https://img.shields.io/badge/sponsors-nektro-purple?logo=github)](https://github.com/sponsors/nektro) +[![Zig](https://img.shields.io/badge/Zig-0.14-f7a41d)](https://ziglang.org/) +[![Zigmod](https://img.shields.io/badge/Zigmod-latest-f7a41d)](https://github.com/nektro/zigmod) + 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 -- 2.54.0