summaryrefslogtreecommitdiff
path: root/utf8.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2000-10-25 13:53:05 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2000-10-25 13:53:05 +0000
commit5bbb0b5ac8fdf0a5cc17b4f7b9199f9e3d7db4b6 (patch)
tree0f8dd6b0afb48396747581babd0d2b6f0c053180 /utf8.c
parent578ab924f3e518fcfbd81dbd57562c05a119f630 (diff)
downloadperl-5bbb0b5ac8fdf0a5cc17b4f7b9199f9e3d7db4b6.tar.gz
Rename UTF8LEN() to be UNISKIP(), too confusing to have
UTF8LEN() and UTF8SKIP(). p4raw-id: //depot/perl@7437
Diffstat (limited to 'utf8.c')
-rw-r--r--utf8.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/utf8.c b/utf8.c
index 2e4833983a..74158211a2 100644
--- a/utf8.c
+++ b/utf8.c
@@ -136,7 +136,7 @@ Perl_is_utf8_char(pTHX_ U8 *s)
s++;
}
- if (UTF8LEN(uv) < len)
+ if (UNISKIP(uv) < len)
return 0;
return len;
@@ -290,11 +290,11 @@ Perl_utf8_to_uv_chk(pTHX_ U8* s, STRLEN curlen, STRLEN* retlen, bool checking)
"Malformed UTF-8 character (impossible character 0x%04"UVxf")",
uv);
goto malformed;
- } else if (expectlen > UTF8LEN(uv)) {
+ } else if (expectlen > UNISKIP(uv)) {
if (dowarn)
Perl_warner(aTHX_ WARN_UTF8,
"Malformed UTF-8 character (%d byte%s, need %d)",
- expectlen, expectlen > 1 ? "s": "", UTF8LEN(uv));
+ expectlen, expectlen > 1 ? "s": "", UNISKIP(uv));
goto malformed;
}