summaryrefslogtreecommitdiff
path: root/utf8.h
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2019-10-02 16:43:50 -0600
committerKarl Williamson <khw@cpan.org>2019-10-06 10:18:17 -0600
commitd7bcd45a8b00fa6be02a62e097629473b2a9becc (patch)
treec9f5d09369861193ba6cbf782ce7688a228e6ab8 /utf8.h
parent009097b13d65a5e37b729c12f1bb088e7c3c7316 (diff)
downloadperl-d7bcd45a8b00fa6be02a62e097629473b2a9becc.tar.gz
utf8.h: Add comment
Diffstat (limited to 'utf8.h')
-rw-r--r--utf8.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/utf8.h b/utf8.h
index 5ff24fdab4..472527c4a1 100644
--- a/utf8.h
+++ b/utf8.h
@@ -355,7 +355,9 @@ C<cp> is Unicode if above 255; otherwise is platform-native.
#endif /* EBCDIC vs ASCII */
-/* 2**UTF_ACCUMULATION_SHIFT - 1 */
+/* 2**UTF_ACCUMULATION_SHIFT - 1. This masks out all but the bits that carry
+ * real information in a continuation byte. This turns out to be 0x3F in
+ * UTF-8, 0x1F in UTF-EBCDIC. */
#define UTF_CONTINUATION_MASK ((U8) ((1U << UTF_ACCUMULATION_SHIFT) - 1))
/* Internal macro to be used only in this file to aid in constructing other