Commit 0082ed0ef1

Andrea Orru <andrea@orru.io>
2018-03-20 16:40:33
Public SplitIterator
1 parent 935f105
Changed files (2)
std/os/zen.zig
@@ -1,6 +1,6 @@
-///////////////////////////
-////  IPC structures   ////
-///////////////////////////
+//////////////////////////
+////  IPC structures  ////
+//////////////////////////
 
 pub const Message = struct {
     sender:   MailboxId,
std/mem.zig
@@ -354,7 +354,7 @@ pub fn startsWith(comptime T: type, haystack: []const T, needle: []const T) bool
     return if (needle.len > haystack.len) false else eql(T, haystack[0 .. needle.len], needle);
 }
 
-const SplitIterator = struct {
+pub const SplitIterator = struct {
     buffer: []const u8,
     split_bytes: []const u8, 
     index: usize,