summaryrefslogtreecommitdiff
path: root/usr.bin/awk/tran.c
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2024-06-04 14:40:47 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2024-06-04 14:40:47 +0000
commit2e14e0c68c351352dd224815a531683d75507bd9 (patch)
treec494d1e8662297d75787234db2031884d1bfb43d /usr.bin/awk/tran.c
parentf8994633398d4c8e81c3d9eea7a16bf4bfa4f3c6 (diff)
Avoid unnecessary string traversals in u8_isutf() and substr().
For u8_isutf() the conditionals already ensure that a NUL byte won't match. For substr() we can use the byte offset of 'm' to avoid re-scanning the initial part of the string. From Jonas Bechtel.
Diffstat (limited to 'usr.bin/awk/tran.c')
0 files changed, 0 insertions, 0 deletions