| author | |
| committer | |
| log | b1933b44d1d8d7be55dc9e8c48ae9e226a1a9095 |
| tree | adb40806fec47769b7727f6b61286a029afafba8 |
| parent | a31b480914d15f3d13cdfb586aac950c73beebdd |
| signature |
2 files changed, 2 insertions(+), 2 deletions(-)
README.md+1-1| ... | @@ -3,7 +3,7 @@ | ... | @@ -3,7 +3,7 @@ |
| 3 |  | 3 |  |
| 4 | [](https://github.com/nektro/zig-intrusive-parser/blob/master/LICENSE) | 4 | [](https://github.com/nektro/zig-intrusive-parser/blob/master/LICENSE) |
| 5 | [](https://github.com/sponsors/nektro) | 5 | [](https://github.com/sponsors/nektro) |
| 6 | [](https://ziglang.org/) | 6 | [](https://ziglang.org/) |
| 7 | [](https://github.com/nektro/zigmod) | 7 | [](https://github.com/nektro/zigmod) |
| 8 | 8 | ||
| 9 | Core plumbing to make text or binary document parsers with Data Oriented Design | 9 | Core plumbing to make text or binary document parsers with Data Oriented Design |
intrusive_parser.zig+1-1| ... | @@ -82,7 +82,7 @@ pub const Parser = struct { | ... | @@ -82,7 +82,7 @@ pub const Parser = struct { |
| 82 | } | 82 | } |
| 83 | 83 | ||
| 84 | pub fn eatAnyScalar(p: *Parser, test_s: string) !?u8 { | 84 | pub fn eatAnyScalar(p: *Parser, test_s: string) !?u8 { |
| 85 | std.debug.assert(extras.matchesAll(u8, test_s, std.ascii.isASCII)); | 85 | std.debug.assert(extras.matchesAll(u8, test_s, std.ascii.isAscii)); |
| 86 | try p.peekAmt(1) orelse return null; | 86 | try p.peekAmt(1) orelse return null; |
| 87 | if (std.mem.indexOfScalar(u8, test_s, p.slice()[0])) |idx| { | 87 | if (std.mem.indexOfScalar(u8, test_s, p.slice()[0])) |idx| { |
| 88 | p.idx += 1; | 88 | p.idx += 1; |