aboutsummaryrefslogtreecommitdiff
path: root/vis.h
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2016-08-07 22:27:23 +0200
committerMarc André Tanner <mat@brain-dump.org>2016-08-07 22:27:23 +0200
commit2b4a550d432e5e570bb888ce06440a825c2e2e7c (patch)
tree20ffcd1ebc90f2c7d07cad7b10581c27b69ee038 /vis.h
parentbec4efe8bbc2956b026438611f9340349d980388 (diff)
downloadvis-2b4a550d432e5e570bb888ce06440a825c2e2e7c.tar.gz
vis-2b4a550d432e5e570bb888ce06440a825c2e2e7c.tar.xz
text-regex: improve searching in binary data
The regex(3) API we currently use, matches on NUL terminated strings. Therefore it does not work for binary data. This commit adds loops to manually skip over NUL bytes. While it does not work for patterns which would match strings containing NUL bytes, it should improve the most basic cases. Binary file handling will need further improvements in the future. Fixes #359.
Diffstat (limited to 'vis.h')
0 files changed, 0 insertions, 0 deletions