summaryrefslogtreecommitdiff
path: root/utfebcdic.h
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2013-02-26 13:35:12 -0700
committerKarl Williamson <public@khwilliamson.com>2013-08-29 09:55:58 -0600
commit5aaebcb3428d61bb90e5f0cfcdee0166b5bcb64e (patch)
tree7dcca006e44aab2c3754075f7bc8b2a3bef2aa81 /utfebcdic.h
parent233ca360345239b7e19039f64bb29a2d310015c6 (diff)
downloadperl-5aaebcb3428d61bb90e5f0cfcdee0166b5bcb64e.tar.gz
Add macro OFFUNISKIP
This means use official Unicode code point numbering, not native. Doing this converts the existing UNISKIP calls in the code to refer to native code points, which is what they meant anyway. The terminology is somewhat ambiguous, but I don't think it will cause real confusion. NATIVE_SKIP is also introduced for situations where it is important to be precise.
Diffstat (limited to 'utfebcdic.h')
-rw-r--r--utfebcdic.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/utfebcdic.h b/utfebcdic.h
index 09d59fa5de..856bcd7d07 100644
--- a/utfebcdic.h
+++ b/utfebcdic.h
@@ -701,7 +701,8 @@ END_EXTERN_C
*/
-#define UNISKIP(uv) ( (uv) < 0xA0 ? 1 : \
+/* Input is a true Unicode (not-native) code point */
+#define OFFUNISKIP(uv) ( (uv) < 0xA0 ? 1 : \
(uv) < 0x400 ? 2 : \
(uv) < 0x4000 ? 3 : \
(uv) < 0x40000 ? 4 : \