authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-03-11 00:40:43 -07:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-03-11 00:40:43 -07:00
log1c536bb7f1f6a633e122e704ad58a022fc7ee288
tree698c4f9814b8aa02e1b4fadb6fe9be64a09aaf86
parentb9741fa658b461aa35e98b713984f9d7e396c16c
signaturebadge-check Signed by SSH key SHA256:4hHJbtBRU58AYXwjL7fkz2fnQHdiye8x1QpTCQ0sHNw

make percentDecode pub


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

url.zig+1-1
...@@ -1466,7 +1466,7 @@ fn percentEncode(allocator: std.mem.Allocator, input: []const u8, comptime set:...@@ -1466,7 +1466,7 @@ fn percentEncode(allocator: std.mem.Allocator, input: []const u8, comptime set:
1466}1466}
14671467
1468/// https://url.spec.whatwg.org/#string-percent-decode1468/// https://url.spec.whatwg.org/#string-percent-decode
1469fn percentDecode(allocator: std.mem.Allocator, input: []const u8) ![]u8 {1469pub fn percentDecode(allocator: std.mem.Allocator, input: []const u8) ![]u8 {
1470 var result = std.ArrayList(u8).init(allocator);1470 var result = std.ArrayList(u8).init(allocator);
1471 errdefer result.deinit();1471 errdefer result.deinit();
1472 try result.ensureUnusedCapacity(input.len);1472 try result.ensureUnusedCapacity(input.len);