fediglam/src/util/lib.zig

20 lines
453 B
Zig
Raw Normal View History

2022-07-30 05:46:00 +00:00
const std = @import("std");
2022-06-09 05:54:41 +00:00
pub const ciutf8 = @import("./ciutf8.zig");
pub const Uuid = @import("./Uuid.zig");
2022-07-18 07:03:29 +00:00
pub const DateTime = @import("./DateTime.zig");
2022-06-02 18:33:16 +00:00
pub const PathIter = @import("./PathIter.zig");
2022-06-09 05:54:41 +00:00
2022-09-08 06:56:29 +00:00
pub fn cloneStr(str: []const u8, alloc: std.mem.Allocator) ![]const u8 {
var new = try alloc.alloc(u8, str.len);
std.mem.copy(u8, new, str);
return new;
}
2022-06-09 05:54:41 +00:00
test {
_ = ciutf8;
_ = Uuid;
2022-06-02 18:33:16 +00:00
_ = PathIter;
2022-07-18 07:03:29 +00:00
_ = DateTime;
2022-06-09 05:54:41 +00:00
}