diff options
| author | Ryan Liptak <squeek502@hotmail.com> | 2023-05-04 18:05:40 -0700 |
|---|---|---|
| committer | Ryan Liptak <squeek502@hotmail.com> | 2023-05-13 13:45:04 -0700 |
| commit | 815e53b147a321d0bdb47dc008aa8181f57175ac (patch) | |
| tree | dc4b4107c3fa8a50032d6d916a57a1718a445fc9 /test/src/Cases.zig | |
| parent | ce9f3ec990cd556f2a9d06a6db2bb53e97a61172 (diff) | |
| download | zig-815e53b147a321d0bdb47dc008aa8181f57175ac.tar.gz zig-815e53b147a321d0bdb47dc008aa8181f57175ac.zip | |
Update all std.mem.tokenize calls to their appropriate function
Everywhere that can now use `tokenizeScalar` should get a nice little performance boost.
Diffstat (limited to 'test/src/Cases.zig')
| -rw-r--r-- | test/src/Cases.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/src/Cases.zig b/test/src/Cases.zig index 68ecebc7bd..aa5369af93 100644 --- a/test/src/Cases.zig +++ b/test/src/Cases.zig @@ -846,7 +846,7 @@ const TestManifest = struct { const actual_start = start orelse return error.MissingTestManifest; const manifest_bytes = bytes[actual_start..end]; - var it = std.mem.tokenize(u8, manifest_bytes, "\r\n"); + var it = std.mem.tokenizeAny(u8, manifest_bytes, "\r\n"); // First line is the test type const tt: Type = blk: { @@ -923,7 +923,7 @@ const TestManifest = struct { fn trailing(self: TestManifest) TrailingIterator { return .{ - .inner = std.mem.tokenize(u8, self.trailing_bytes, "\r\n"), + .inner = std.mem.tokenizeAny(u8, self.trailing_bytes, "\r\n"), }; } |
