╭─────────────╮ │scroll to top│ ╰─────────────╯ ╭ Title.zig ────────────────────────────────────────────────────╮ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ ╰───────────────────────────────────────────────────────────────╯
╭────╮ ╭ clone ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ╮ │http│ ssh │ │ ╰────╯ ╰ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ╯
553 var utf8_buf: [4]u8 = undefined; 554 const len = try std.unicode.utf8Encode(cp, &utf8_buf); 555 try rows[text_row].appendSlice(allocator, utf8_buf[0..len]); 556 } 557 } 558 } 559 560 var out: std.ArrayList(u8) = .empty; 561 errdefer out.deinit(allocator); 562 try out.appendSlice(allocator, rows[0].items); 563 try out.append(allocator, '\n'); 564 try out.appendSlice(allocator, rows[1].items); 565 try out.append(allocator, '\n'); 566 try out.appendSlice(allocator, rows[2].items); 567 return out.toOwnedSlice(allocator); 568 } 569