authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-02-21 00:15:29 -08:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-02-21 00:15:29 -08:00
loge09157c647f08a087a832cf1da70e0de3f8c0076
tree58fb98a3fb20df9b1e8a0a98b6fff6b977dd59bf
parentb1cc8547ef30e330a9b4a4ed3b65ee961c542043

fix some pubs


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

url.zig+3-3
......@@ -1563,7 +1563,7 @@ fn lastcpi(haystack: []const u8) usize {
15631563 while (haystack[i] & 0xC0 == 0x80) : (i -= 1) {}
15641564 return i;
15651565}
1566fn percentEncodeScalarAL(list: *std.ArrayList(u8), cp: []const u8, comptime set: fn (u8) bool) !void {
1566pub fn percentEncodeScalarAL(list: *std.ArrayList(u8), cp: []const u8, comptime set: fn (u8) bool) !void {
15671567 if (set(cp[0])) {
15681568 for (cp) |b| {
15691569 try list.append('%');
......@@ -1573,7 +1573,7 @@ fn percentEncodeScalarAL(list: *std.ArrayList(u8), cp: []const u8, comptime set:
15731573 try list.append(cp[0]);
15741574 }
15751575}
1576fn percentEncodeAL(list: *std.ArrayList(u8), input: []const u8, comptime set: fn (u8) bool) !void {
1576pub fn percentEncodeAL(list: *std.ArrayList(u8), input: []const u8, comptime set: fn (u8) bool) !void {
15771577 var it = std.unicode.Utf8View.initUnchecked(input).iterator();
15781578 while (it.nextCodepointSlice()) |sl| {
15791579 if (set(sl[0])) {
......@@ -1659,7 +1659,7 @@ fn setHost(href: *ManyArrayList(15, u8), h: URL.Host) !void {
16591659 },
16601660 }
16611661}
1662pub fn replaceInPlace(comptime T: type, input: []T, needle: []const T, replacement: []const T) usize {
1662fn replaceInPlace(comptime T: type, input: []T, needle: []const T, replacement: []const T) usize {
16631663 // Empty needle will loop until output buffer overflows.
16641664 std.debug.assert(needle.len > 0);
16651665 std.debug.assert(needle.len >= replacement.len);