diff options
author | Nick Ing-Simmons <nik@tiuk.ti.com> | 2001-03-18 15:23:51 +0000 |
---|---|---|
committer | Nick Ing-Simmons <nik@tiuk.ti.com> | 2001-03-18 15:23:51 +0000 |
commit | 63cd067459124b5dc1d2ae98453df4ffdff11607 (patch) | |
tree | 5cebda9f50b0c1939cc0f777bcd439d5f165eb5e /doop.c | |
parent | 1b026014ba0f5424fabe070eda050db5e7df518a (diff) | |
download | perl-63cd067459124b5dc1d2ae98453df4ffdff11607.tar.gz |
Prefer !UTF8_IS_INVARIANT() over UTF8_IS_CONTINUED() when that
is the sense of the test being done. Avoid some magical 127 and 128 values
by using macros.
p4raw-id: //depot/perlio@9199
Diffstat (limited to 'doop.c')
-rw-r--r-- | doop.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -317,7 +317,7 @@ S_do_trans_simple_utf8(pTHX_ SV *sv)/* SPC - OK */ if (!isutf8) { U8 *t = s, *e = s + len; while (t < e) - if ((hibit = UTF8_IS_CONTINUED(*t++))) + if ((hibit = !UTF8_IS_INVARIANT(*t++))) break; if (hibit) s = bytes_to_utf8(s, &len); |