remove parse() function
All checks were successful
Generic zig build / build (push) Successful in 20s
All checks were successful
Generic zig build / build (push) Successful in 20s
This commit is contained in:
parent
b1e784dbb2
commit
f149909075
2 changed files with 352 additions and 786 deletions
|
|
@ -74,8 +74,13 @@ pub fn main(init: std.process.Init) !void {
|
|||
|
||||
if (std.mem.eql(u8, format, "srf")) {
|
||||
var reader = std.Io.Reader.fixed(data.items);
|
||||
const records = try srf.parse(&reader, allocator, .{ .parse_allocator = .none });
|
||||
defer records.deinit();
|
||||
const it = try srf.iterator(&reader, allocator, .{ .parse_allocator = .none });
|
||||
defer it.deinit();
|
||||
// We want to touch every field, otherwise we're not really excercising
|
||||
// this appropriately
|
||||
while (try it.next()) |rec| {
|
||||
while (try rec.next()) |_| {}
|
||||
}
|
||||
} else if (std.mem.eql(u8, format, "jsonl")) {
|
||||
var lines = std.mem.splitScalar(u8, data.items, '\n');
|
||||
while (lines.next()) |line| {
|
||||
|
|
|
|||
1129
src/srf.zig
1129
src/srf.zig
File diff suppressed because it is too large
Load diff
Loading…
Add table
Reference in a new issue