From f710bf0c914270e8b2b3f6c31e2fd6246aa8a762 Mon Sep 17 00:00:00 2001 From: Karl Williamson Date: Wed, 3 Apr 2013 21:59:16 -0600 Subject: [PATCH] utf8.h: Clarify comments --- utf8.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/utf8.h b/utf8.h index 574fd7a..45353ea 100644 --- a/utf8.h +++ b/utf8.h @@ -202,12 +202,12 @@ Perl's extended UTF-8 means we can have start bytes up to FF. /* This defines the 1-bits that are to be in the first byte of a multi-byte * UTF-8 encoded character that give the number of bytes that comprise the - * character. - * */ + * character. 'len' is the number of bytes in the multi-byte sequence. */ #define UTF_START_MARK(len) (((len) > 7) ? 0xFF : (0xFF & (0xFE << (7-(len))))) /* Masks out the initial one bits in a start byte, leaving the real data ones. - * Doesn't work on an invariant byte */ + * Doesn't work on an invariant byte. 'len' is the number of bytes in the + * multi-byte sequence that comprises the character. */ #define UTF_START_MASK(len) (((len) >= 7) ? 0x00 : (0x1F >> ((len)-2))) /* This defines the bits that are to be in the continuation bytes of a multi-byte -- 2.7.4