diff options
author | Karl Williamson <khw@cpan.org> | 2015-05-06 20:47:15 -0600 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2015-05-07 17:32:47 -0600 |
commit | 2accb712600a36336d0544f369bc2a30ee70bdf3 (patch) | |
tree | b85a8e840b54825766ec53c2076a51adc9002e3a /utf8.h | |
parent | ca2bf4b7509cb12126c80f55c7b9f389abd717aa (diff) | |
download | perl-2accb712600a36336d0544f369bc2a30ee70bdf3.tar.gz |
utf8.h: Add a #define
The name UVCHR... parallels the usage of various functions uvchr...
It's less confusing to keep the same name form for the same type of
functionality
Diffstat (limited to 'utf8.h')
-rw-r--r-- | utf8.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -326,9 +326,10 @@ Perl's extended UTF-8 means we can have start bytes up to FF. /* Most code which says UNISKIP is really thinking in terms of native code * points (0-255) plus all those beyond. This is an imprecise term, but having - * it means existing code continues to work. For precision, use NATIVE_SKIP - * and OFFUNISKIP */ + * it means existing code continues to work. For precision, use UVCHR_SKIP, + * NATIVE_SKIP, and OFFUNISKIP */ #define UNISKIP(uv) NATIVE_SKIP(uv) +#define UVCHR_SKIP(uv) NATIVE_SKIP(uv) /* Convert a two (not one) byte utf8 character to a native code point value. * Needs just one iteration of accumulate. Should not be used unless it is |