CVSROOT: /cvs Module name: src Changes by: [email protected] 2024/06/04 08:40:46
Modified files:
usr.bin/awk : run.c
Log message:
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.
