summaryrefslogtreecommitdiff
path: root/utf8.h
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2019-08-30 13:57:05 -0600
committerKarl Williamson <khw@cpan.org>2019-09-02 21:52:11 -0600
commitf4d83e55d69eae573b06b926dd468cf6545fa92c (patch)
treee13674b796f0730730c15e36c178c50138e5aca1 /utf8.h
parent962fce0f2b9ff77546b969a0e72dce2832391988 (diff)
downloadperl-f4d83e55d69eae573b06b926dd468cf6545fa92c.tar.gz
Document UTF8_MAXBYTES
Diffstat (limited to 'utf8.h')
-rw-r--r--utf8.h18
1 files changed, 13 insertions, 5 deletions
diff --git a/utf8.h b/utf8.h
index 4c699d8294..3e35860caa 100644
--- a/utf8.h
+++ b/utf8.h
@@ -108,11 +108,19 @@ the string is invariant.
#else /* ! EBCDIC */
START_EXTERN_C
-/* How wide can a single UTF-8 encoded character become in bytes. */
-/* NOTE: Strictly speaking Perl's UTF-8 should not be called UTF-8 since UTF-8
- * is an encoding of Unicode, and Unicode's upper limit, 0x10FFFF, can be
- * expressed with 4 bytes. However, Perl thinks of UTF-8 as a way to encode
- * non-negative integers in a binary format, even those above Unicode */
+/*
+
+=for apidoc AmnU|STRLEN|UTF8_MAXBYTES
+
+The maximum width of a single UTF-8 encoded character, in bytes.
+
+NOTE: Strictly speaking Perl's UTF-8 should not be called UTF-8 since UTF-8
+is an encoding of Unicode, and Unicode's upper limit, 0x10FFFF, can be
+expressed with 4 bytes. However, Perl thinks of UTF-8 as a way to encode
+non-negative integers in a binary format, even those above Unicode.
+
+=cut
+ */
#define UTF8_MAXBYTES 13
#ifdef DOINIT