You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This library is a UTF-8 compatible **string** library for the **Zig** programming language.
6
-
I made this for the sole purpose to further my experience and understanding of zig.
7
-
Also it may be useful for some people who need it (including myself), with future projects. Project is also open for people to add to and improve. Please check the **issues** to view requested features.
3
+
This library is a UTF-8 compatible **string** library for the **Zig** programming language. I copied [JakubSzark's](https://github.com/JakubSzark/zig-string) String implementation and expanded on it.
try myString.concat(arena.allocator(), ", World 🔥");
53
+
try myString.concat(allocator, ", World 🔥");
55
54
56
55
// Success!
57
56
std.debug.assert(myString.cmp("🔥 Hello, World 🔥"));
@@ -60,7 +59,7 @@ std.debug.assert(myString.cmp("🔥 Hello, World 🔥"));
60
59
61
60
## When To Use Which?
62
61
63
-
If simplicity is what you want and you don't need granular control over memory, then use `String` (this is fine for most cases). Otherwise you probably want `StringUnmanaged`.
62
+
If simplicity is what you want and you don't need granular control over memory, then use `StringManaged` (this is fine for most cases). Otherwise you probably want `StringUnmanaged`.
0 commit comments