diff options
author | Karl Williamson <public@khwilliamson.com> | 2013-09-16 22:42:09 -0600 |
---|---|---|
committer | Karl Williamson <public@khwilliamson.com> | 2013-09-16 23:13:12 -0600 |
commit | e2660c54a3f89a507f2f7b18f3a4f69b76dfff22 (patch) | |
tree | fbe8829971c7a080fda7258d91600add6217f56f /utf8.c | |
parent | 62e1661840c325f40cc471909908a093fa5d2dd8 (diff) | |
download | perl-e2660c54a3f89a507f2f7b18f3a4f69b76dfff22.tar.gz |
perlapi: Typos; clarify comment
Diffstat (limited to 'utf8.c')
-rw-r--r-- | utf8.c | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -630,7 +630,7 @@ Perl_utf8n_to_uvchr(pTHX_ const U8 *s, STRLEN curlen, STRLEN *retlen, U32 flags) * We also should not consume too few bytes, otherwise someone could inject * things. For example, an input could be deliberately designed to * overflow, and if this code bailed out immediately upon discovering that, - * returning to the caller *retlen pointing to the very next byte (one + * returning to the caller C<*retlen> pointing to the very next byte (one * which is actually part of of the overflowing sequence), that could look * legitimate to the caller, which could discard the initial partial * sequence and process the rest, inappropriately */ @@ -4762,11 +4762,13 @@ Perl_uvuni_to_utf8_flags(pTHX_ U8 *d, UV uv, UV flags) Instead use L</utf8_to_uvchr_buf>, or rarely, L</utf8n_to_uvchr>. -This function was usefulfor code that wanted to handle both EBCDIC and +This function was useful for code that wanted to handle both EBCDIC and ASCII platforms with Unicode properties, but starting in Perl v5.20, the distinctions between the platforms have mostly been made invisible to most -code, so this function is quite unlikely to be what you want. -C<L<NATIVE_TO_UNI(utf8_to_uvchr_buf(...))|/utf8_to_uvchr_buf>> instead. +code, so this function is quite unlikely to be what you want. If you do need +this precise functionality, use instead +C<L<NATIVE_TO_UNI(utf8_to_uvchr_buf(...))|/utf8_to_uvchr_buf>> +or C<L<NATIVE_TO_UNI(utf8n_to_uvchr(...))|/utf8n_to_uvchr>>. =cut */ |