diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2000-10-25 13:53:05 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2000-10-25 13:53:05 +0000 |
commit | 059ebda22b349c36caf0bba6d56a0ae3229899a1 (patch) | |
tree | 0f8dd6b0afb48396747581babd0d2b6f0c053180 /utf8.h | |
parent | d3454d096b1316150d6323306817b7855bb50372 (diff) | |
download | perl-059ebda22b349c36caf0bba6d56a0ae3229899a1.tar.gz |
Rename UTF8LEN() to be UNISKIP(), too confusing to have
UTF8LEN() and UTF8SKIP().
p4raw-id: //depot/perl@7437
Diffstat (limited to 'utf8.h')
-rw-r--r-- | utf8.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -36,7 +36,7 @@ END_EXTERN_C #define UTF8SKIP(s) PL_utf8skip[*(U8*)s] #ifdef HAS_QUAD -#define UTF8LEN(uv) ( (uv) < 0x80 ? 1 : \ +#define UNISKIP(uv) ( (uv) < 0x80 ? 1 : \ (uv) < 0x800 ? 2 : \ (uv) < 0x10000 ? 3 : \ (uv) < 0x200000 ? 4 : \ @@ -45,7 +45,7 @@ END_EXTERN_C (uv) < 0x1000000000LL ? 7 : 13 ) #else /* No, I'm not even going to *TRY* putting #ifdef inside a #define */ -#define UTF8LEN(uv) ( (uv) < 0x80 ? 1 : \ +#define UNISKIP(uv) ( (uv) < 0x80 ? 1 : \ (uv) < 0x800 ? 2 : \ (uv) < 0x10000 ? 3 : \ (uv) < 0x200000 ? 4 : \ |