diff options
author | Karl Williamson <khw@cpan.org> | 2019-08-30 13:57:05 -0600 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2019-09-02 21:52:11 -0600 |
commit | f4d83e55d69eae573b06b926dd468cf6545fa92c (patch) | |
tree | e13674b796f0730730c15e36c178c50138e5aca1 /utf8.h | |
parent | 962fce0f2b9ff77546b969a0e72dce2832391988 (diff) | |
download | perl-f4d83e55d69eae573b06b926dd468cf6545fa92c.tar.gz |
Document UTF8_MAXBYTES
Diffstat (limited to 'utf8.h')
-rw-r--r-- | utf8.h | 18 |
1 files changed, 13 insertions, 5 deletions
@@ -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 |