Tidy up the code around the memchr(3) calls.

Change-Id: Id06cae00beaebeaa74f59d68a9abc5e39e37ced6
Reviewed-on: https://code-review.googlesource.com/c/re2/+/56650
Reviewed-by: Paul Wankadia <junyer@google.com>
3 files changed