diff options
| author | Jakub Konka <kubkon@jakubkonka.com> | 2023-07-20 14:05:16 +0200 |
|---|---|---|
| committer | Jakub Konka <kubkon@jakubkonka.com> | 2023-07-20 20:01:06 +0200 |
| commit | e8b613783f383b39018cb83b2b141f991c2bc7ae (patch) | |
| tree | 32e270a33ac83e44ba3258975960ba5968914c42 /lib/std/std.zig | |
| parent | 5839054e8591f60cbfdd3693398ecd5844530fe9 (diff) | |
| download | zig-e8b613783f383b39018cb83b2b141f991c2bc7ae.tar.gz zig-e8b613783f383b39018cb83b2b141f991c2bc7ae.zip | |
check-object: remove wildcard matchers as they are too clunky
Instead, we now have a looser helper called `checkContains(...)`
that will match on any occurrence similarly to `std.mem.indexOf()`.
While at it, I have cleaned up other combinators to make the entire
API more consistent, and so:
* `checkStart(phrase)` is now `checkStart()` followed by
`checkExact(phrase)`
* `checkNext(phrase)` if matching exactly is now `checkExact(phrase)`
* `checkNext(phrase)` if matching loosely is now `checkContains(phrase)`
* `checkNext(phrase)` if matching exactly with var extractors is now
`checkExtract(phrase)`
Finally, `ElfDumper` is now dumping contents of `.symtab` and `.dynsym`
symbol tables. I have also removed dumping of symtabs as optional - they
are now always dumped which cleaned up the implementation even more.
Diffstat (limited to 'lib/std/std.zig')
0 files changed, 0 insertions, 0 deletions
